CSS named color

LightYellow #FFFFE0

lightyellow rgb(255, 255, 224)

LightYellow is a pale yellow with the hex code #FFFFE0, which converts to rgb(255, 255, 224). Open #FFFFE0 in the converter to tweak it.

LightYellow color values

HEX#FFFFE0
HEX (shorthand)—
RGBrgb(255, 255, 224)
RGBArgba(255, 255, 224, 1)
8-digit HEX#FFFFE0FF
HSLhsl(60, 100%, 94%)
HSV / HSB60°, 12%, 100%
CMYK0%, 0%, 12%, 0%
RGB 0–11, 1, 0.878
Decimal16777184
CSS keywordlightyellow

How #FFFFE0 converts to RGB

Split the hex code into three pairs and read each pair as a base-16 number: FF → 255, FF → 255, E0 → 224. That gives rgb(255, 255, 224). The step-by-step guide explains the math.

Shades of LightYellow

Mixed toward black in 10% steps. Click a swatch to copy its hex.

Tints of LightYellow

Mixed toward white in 10% steps.

Color harmonies

Hue rotations of LightYellow on the HSL color wheel, keeping saturation and lightness fixed. The color harmony guide explains when each scheme works.

Complementary

Analogous

Split-complementary

Triadic

Tetradic (square)

Contrast and accessibility

TextBackgroundRatioWCAG 2.x
White LightYellow 1.01:1Fail
Black LightYellow 20.63:1AAA

Use black text on a lightyellow background. Test any other pair in the contrast checker; thresholds are explained in the WCAG contrast guide.

Use LightYellow in CSS

.element {
  color: lightyellow;                         /* keyword */
  background-color: #FFFFE0;            /* hex */
  border-color: rgb(255 255 224 / 50%);    /* 50% transparent */
}

Need it semi-transparent? Append an alpha byte: #FFFFE080 is LightYellow at 50% opacity. See RGBA & transparency.

Similar named colors

FAQ

What is the HEX code for LightYellow?

The CSS named color lightyellow is #FFFFE0 in hexadecimal. In CSS you can write color: lightyellow; or color: #FFFFE0; — both produce the same pixel.

What is LightYellow in RGB?

LightYellow is rgb(255, 255, 224): red 255, green 255, blue 224 on the 0–255 scale. As normalized 0–1 floats that is (1, 1, 0.878).

Is white or black text more readable on LightYellow?

Black text is more readable. White on #FFFFE0 has a contrast ratio of 1.01:1 (Fail), black on #FFFFE0 has 20.63:1 (AAA). WCAG AA needs 4.5:1 for normal text.

Copied!