Yellow Color
HEX #FFFF00 · rgb(255, 255, 0) · hsl(60, 100%, 50%)
Yellow color codes
Yellow is one of the named colors every browser understands. In CSS you can write it as yellow or #FFFF00.
| Format | Value | |
|---|---|---|
| HEX | #FFFF00 | |
| RGB | rgb(255, 255, 0) | |
| HSL | hsl(60, 100%, 50%) | |
| CMYK | 0%, 0%, 100%, 0% | |
| CSS name | yellow |
.example {
color: yellow;
background-color: #FFFF00;
border-color: rgb(255, 255, 0);
}
Colors that go with yellow
These harmonies keep the same saturation and lightness and rotate the hue around the color wheel.
Tints and shades of yellow
Tints mix the color with white; shades mix it with black.
Yellow
Contrast and readability
19.56:1
passes AA and AAA
1.07:1
fails
Use black text on yellow. Ratios follow the WCAG 2 formula; AA needs 4.5:1 for normal text and 3:1 for large text.
Frequently asked questions
What is the hex code for yellow?
The hex code for yellow is #FFFF00.
What is the RGB value of yellow?
Yellow is rgb(255, 255, 0): 255 red, 255 green and 0 blue on a 0 to 255 scale.
What color goes with yellow?
Its complementary color is #0000FF, which is closest to the named color blue. Analogous and triadic matches are listed on this page.
Should text on yellow be black or white?
Use black text. The contrast ratio is 19.56:1 with black and 1.07:1 with white. WCAG AA asks for at least 4.5:1 for normal text.
Similar named colors
Pick any other color with the color picker, or browse all named colors.