CSS named color
LightYellow #FFFFE0
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) | — |
| RGB | rgb(255, 255, 224) |
| RGBA | rgba(255, 255, 224, 1) |
| 8-digit HEX | #FFFFE0FF |
| HSL | hsl(60, 100%, 94%) |
| HSV / HSB | 60°, 12%, 100% |
| CMYK | 0%, 0%, 12%, 0% |
| RGB 0–1 | 1, 1, 0.878 |
| Decimal | 16777184 |
| CSS keyword | lightyellow |
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
| Text | Background | Ratio | WCAG 2.x |
|---|---|---|---|
| White | LightYellow | 1.01:1 | Fail |
| Black | LightYellow | 20.63:1 | AAA |
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.