AfoliOpen Afoli →

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%.

Open in Afoli Colour tools →

#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

PairWCAG 2.x ratioAPCA LcResult
Yellow text on white1.07 : 10Fails for text
Yellow text on black19.56 : 1-103AAA — any text
White text on Yellow1.07 : 10Fails for text
Black text on Yellow19.56 : 1101AAA — any text

WCAG 2.x needs 4.5 : 1 for body text and 3 : 1 for large text; APCA asks for |Lc| 75 for body text and 60 for large 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

Sources and licences

Updated November 21, 2026