HTML Color Codes
With this dynamic HTML color chart you can get HTML codes for basic colors.
Click on any color square to get its HTML color code. Below is a list of recently picked colors.
Test contrast
The latest accessibility guidelines (e.g., WCAG 2.0 1.4.3) require that text (and images of text) provide adequate contrast for people who have visual impairments.
To comply with the standard, the requirements are:
- 3:1 - minimum contrast for "large scale" text (18 pt or 14 pt bold, or larger) under WCAG 2.0 1.4.3 (Level AA)
- 4.5:1 - minimum contrast for regular sized text under WCAG 2.0 1.4.3 (Level AA)
- 7:1 - "enhanced" contrast for regular sized text under WCAG 2.0 1.4.6 (Level AAA)
Enter a background and text color, and determine the styling of your text.
This is a sample.
Color Names Supported by All Browsers
All modern browsers support the following 140 color names (click on a color name, or a hex value, to view the color as the background-color along with different text colors):