Yellow
Yellow is a near-white, saturated yellow color with the hex code #FFFF00 (hue 60°, saturation 100%, lightness 50%). It is also the CSS named color yellow.
- HEX
#FFFF00 - RGB
rgb(255 255 0) - HSL
hsl(60 100% 50%) - OKLCH
oklch(96.8% 0.211 110)
| Name | HEX | RGB | HSL | CMYK | OKLCH | |
|---|---|---|---|---|---|---|
| Yellow | #FFFF00 | 255, 255, 0 | 60°, 100%, 50% | 0, 0, 100, 0 | 96.8% 0.211 110 |
Contrast with white text 1.07:1, with black text 19.56:1 — use black text on Yellow.
yellow is one of the 148 named colors in CSS, with exactly this value, so color: yellow works in any browser without a hex code.
Huebook · Maintained by Iris Marlow (pen name) · automated checks · Data: color-name-list (MIT) for names; CSS Color Module Level 4 (W3C) for CSS named colors · Updated · How the checks work
Adjust Yellow
Move the sliders to make Yellow lighter, darker, more or less vivid, or shift its hue. The nearest named colors update as you go.
- HEX
#FFFF00 - RGB
rgb(255 255 0) - HSL
hsl(60 100% 50%)
Variations of Yellow
Text on Yellow
WCAG 2 asks for 4.5:1 for body text and 3:1 for large text (AA), and 7:1 and 4.5:1 for the stricter AAA level.
Yellow with color blindness
How Yellow appears with a complete loss of red (protanopia), green (deuteranopia) or blue (tritanopia) cones, simulated with the Machado, Oliveira and Fernandes (2009) model. Red-green color blindness affects about 1 in 12 men and 1 in 200 women, so do not rely on color alone to carry meaning.
Tints and shades
Colors that go with Yellow
Six color schemes built on Yellow with classic harmony rules. The complementary scheme pairs it with Blue (#0000FF), the color opposite it on the color wheel.
- Yellow Complementary Color Scheme#FFFF00#FCFC5D#0000FF#0000BB#6666FF
- Yellow Analogous Color Scheme#FF0000#FF7F00#FFFF00#88FF00#00FF00
- Yellow Triadic Color Scheme#FFFF00#00FFFF#FF00FF#FFFF66#01B1AF
- Yellow Split-complementary Color Scheme#FFFF00#007FFF#7F00FF#A8B504#55AAFF
- Yellow Tetradic Color Scheme#FFFF00#04F489#0000FF#FF0080#FFFF66
- Yellow Monochromatic Color Scheme#666600#A8B504#FFFF00#FAFE4B#FFFF99
Nearest CSS named colors
- Green Yellow (
greenyellow): Green Yellow (#ADFF2F) is darker than Yellow (relative luminance 0.806 vs 0.928) and equally saturated, with its hue 24° away. - Gold (
gold): Gold (#FFD700) is darker than Yellow (relative luminance 0.699 vs 0.928) and equally saturated, with its hue 9° away. - Khaki (CSS) (
khaki): Khaki (CSS) (#F0E68C) is darker than Yellow (relative luminance 0.770 vs 0.928) and less saturated, with its hue 6° away. - Pale Green (
palegreen): Pale Green (#98FB98) is darker than Yellow (relative luminance 0.779 vs 0.928) and less saturated, with its hue 60° away.
Gradients with Yellow
Similar medium yellow colors
- A Frond in Need#9F9978
- Amazon Queen#948F54
- Angel’s Trumpet#F6DD34
- Antique#8B846D
- Backroom Ember#A19250
- Bamboo Forest#B1A979
- Banana Bandanna#F8F739
- Banana Bombshell#F7E82E
- Banana Brick#E8D82C
- Banana Flash#EEFE02
- Banana King#FFFB08
- Banana Pepper#FDD630
- Banana Propaganda#F3DB00
- Bat-Signal#FEFF00
- Bee Yellow#FEFF32
- Bitter Lemon#D2DB32
- Boa#7F7755
- Bonsai#787B54
Questions
What is the hex code for Yellow?
#FFFF00 — RGB 255, 255, 0, HSL 60°, 100%, 50%.
Is Yellow a warm or cool color?
Warm — its hue sits at 60° on the color wheel.