Yellow

All colors
CSS named colorGreen · light · vivid
browser standard

#FFFF00

Yellow

Best set with black text. The pairing reaches 19.56:1 contrast and passes AAA for normal text.

Color values

copy exact values
HEX#FFFF00sRGB hexadecimal
RGBrgb(255, 255, 0)screen channels
HSLhsl(60, 100%, 50%)hue, saturation, lightness
CMYKcmyk(0%, 0%, 100%, 0%)approximate process color
Tailwindyellow-300nearest palette utility, not an exact token

Foreground contrast

WCAG ratios
White textfails AA1.07:1
Black textAAA19.56:1

Recommendation

Use black text for the stronger built-in pairing. AA requires 4.5:1 for normal text; AAA requires 7:1.

Palette relationships

generated in color space
Tonal ramp
#050505
#52501A
#A4A31C
#FFFF00
#FFFD79
#FFFBBB
#FAFAFA
Analogous
#FF8000
#FFFF00
#80FF00
Triadic
#FFFF00
#00FFFF
#FF00FF
Complement
#FFFF00
#0000FF

Nearest named neighbors

Lab distance · lower is closer

CSS output

:root {
  --color-yellow: #FFFF00;
}

.swatch {
  background: var(--color-yellow);
  color: #000000;
}
Hue103°
Lightness97 L*
Chroma96.9
Luminance0.928