Yellow color #FFFF00
Yellow is one of the CSS named colors (keyword yellow) with the hex code #FFFF00 — RGB 255, 255, 0, HSL 60°, 100%, 50%.
#FFFF00Yellow
Color codes
- HEX
#FFFF00- RGB
rgb(255, 255, 0)- HSL
hsl(60, 100%, 50%)- CMYK
0%, 0%, 100%, 0%- OKLCH
oklch(96.8% 0.211 109.8)- CSS keyword
yellow
Tints and shades
#FFFF2E#E4E400#C8C800#ADAD00#939300#7A7A00#616100#4A4A00#343400#1F1F00#0C0C00
Color harmonies
Complementary
#FFFF00#F4F3FF
Analogous
#FFF3DE#FFFF00#DFFFD8
Triadic
#FFFF00#E8F7FF#FFEFF6
Split complementary
#FFFF00#EEF5FF#FCEFFF
Tetradic
#FFFF00#D5FEFF#F4F3FF#FFF0F0
Contrast with text
| Pair | WCAG 2.x ratio | APCA Lc | Result |
|---|---|---|---|
| Yellow text on white | 1.07 : 1 | 0 | Fails for text |
| Yellow text on black | 19.56 : 1 | -103 | AAA — any text |
| White text on Yellow | 1.07 : 1 | 0 | Fails for text |
| Black text on Yellow | 19.56 : 1 | 101 | AAA — any text |
Frequently asked questions
What is the hex code of Yellow?
Yellow has the hex code #FFFF00, which is RGB 255, 255, 0 and HSL 60°, 100%, 50%.
Which text color reads best on Yellow?
Black text: contrast 19.56 : 1 (white text: 1.07 : 1).
Which colors go well with Yellow?
Its complementary color is #F4F3FF; analogous colors are #FFF3DE and #DFFFD8; a triadic set adds #E8F7FF and #FFEFF6.
Similar colors
- Canary #FDFF63
- Off Yellow #F1F33F
- Yellowish Tan #FCFC81
- Pear #CBF85F
- Light Pea Green #C4FE82
- Yellowy Green #BFF128
- Key Lime #AEFF6E
- Green Yellow #ADFF2F
- Sickly Yellow #D0E429
- Gold #FFD700
Sources and licences
- CSS Color Module Level 4 — named colors (W3C Software and Document License)
- Afoli — conversions, shades, harmonies, WCAG 2.x / APCA contrast (tools/color/color-core.js)