Color reference

Yellow #FFFF00

Yellow is the standard CSS named color #FFFF00, combining full red and green channels with no blue in sRGB.

Yellow is the CSS named color keyword yellow, standardized at #FFFF00 in sRGB.

Yellow #FFFF00 19.56:1 with black text

Color values

HEX#FFFF00
RGBrgb(255, 255, 0)
HSLhsl(60 100% 50%)
HSV60°, 100%, 100%
CMYK0%, 0%, 100%, 0%

HEX/RGB/HSL/HSV are deterministic sRGB representations. CMYK here is a mathematical approximation, not a printer-profile conversion.

Black or white text?

Black text 19.56:1 — AA normal text passes
White text 1.07:1 — AA normal text fails

AA normal text: black passes; white fails.

AA large text: black passes; white fails.

WCAG contrast thresholds use 4.5:1 for normal text and 3:1 for large text. Do not round a near-threshold result upward when testing conformance.

Tints and shades of Yellow

These steps are computed by RGB-mixing #FFFF00 toward white or black. They are generated values, not official named colors.

80% tint #FFFFCC
60% tint #FFFF99
40% tint #FFFF66
20% tint #FFFF33
Base #FFFF00
20% shade #CCCC00
40% shade #999900
60% shade #666600
80% shade #333300

Need more control? Use the Tints and Shades Generator or Lighten / Darken tool.

CSS usage

.example {
  color: #000000;
  background-color: yellow;
}

You can use either yellow or #FFFF00 in CSS; both resolve to the same sRGB color.