CSS color names · Yellows

Light Yellow color: hex #ffffe0, RGB and HSL

Light Yellow is the CSS keyword lightyellow, hex #ffffe0, rgb(255, 255, 224), hsl(60, 100%, 94%). It is a very light, fully saturated yellow in the yellows family. Below: the colors that go with it, its tints and shades, how it reads as text, and a complete interface palette built from it.

CSS name
lightyellow
Hex
#ffffe0
RGB
rgb(255, 255, 224)
HSL
hsl(60, 100%, 94%)
On white
1.02:1 — fails AA; use as a fill, not text
On black
20.63:1 — passes AA for body text
.example {
  color: lightyellow;          /* keyword */
  color: #ffffe0;          /* hex */
  color: rgb(255, 255, 224); /* rgb */
  color: hsl(60, 100%, 94%); /* hsl */
}

What colors go with light yellow

Each match keeps light yellow's saturation and lightness and rotates only the hue, so the relationship is the wheel's and nothing else. Any of these can be an accent beside light yellow as the primary; the harmony guides explain which rule suits which interface.

Complementary

The opposite hue, 180° away — the strongest contrast, best kept to one accent per screen.

#e0e0ff

Split-complementary

The two neighbors of the complement, at 150° and 210° — most of the contrast with less tension, and two accents instead of one.

#e0f0ff
#f0e0ff

Triadic

Two hues at 120° and 240° — three evenly spaced signals, the scheme charts and category colors want.

Analogous

The neighbors at −30° and +30° — calm and cohesive, with emphasis coming from weight and size rather than hue.

#fff0e0
#f0ffe0

Tints and shades of light yellow

Tints add lightness toward white; shades remove it toward black. The hue and saturation stay fixed, so every step still reads as light yellow — these are the hover, pressed, disabled and surface variants a single brand color needs.

Tints (lighter)

#ffffe5
#ffffea
#fffff0 · ivory
#fffff5
#fffffa

Shades (darker)

#ffff90
#ffff40
#f0f000
#a0a000
#505000

A UI color palette built from light yellow

The eight semantic roles an interface actually uses, derived from light yellow as the primary with the split-complementary rule: secondary and accent rotate around the wheel, and the five neutrals take the hue at lightness steps tuned for light and dark mode. This is the same derivation the palette generator runs — open it there to change the rule, drag the anchors, or export the set as CSS variables.

Light mode
primary
#ffffe0
secondary
#e0f0ff
accent
#f0e0ff
background
#fdfdfc
surface
#f7f7f3
text
#222211
muted
#8f8f56
border
#ececdf
Dark mode
primary
#ffffe0
secondary
#e0f0ff
accent
#f0e0ff
background
#1b1b0e
surface
#282815
text
#f6f6f3
muted
#b8b894
border
#494927

Using light yellow in an interface

Pure yellow fails contrast against white for text at every size, so it belongs on dark surfaces or as a fill with dark text. The creams are excellent warm page backgrounds; the khakis are muted enough for borders and tags. Whichever role light yellow takes, define it once as a token rather than repeating the keyword: the semantic palette guide covers the eight roles, and the guides to complementary, triadic and the other color schemes explain how to weight the matches above.

What is the hex code for Light Yellow?
Light Yellow is #ffffe0. In CSS the keyword lightyellow, the hex #ffffe0, rgb(255, 255, 224) and hsl(60, 100%, 94%) all paint the same color.
What colors go with Light Yellow?
Its complement is #e0e0ff, the split-complementary pair is #e0f0ff and #f0e0ff, the triadic partners are #e0ffff and #ffe0ff, and the analogous neighbors are #fff0e0 and #f0ffe0. In an interface, use Light Yellow for most colored elements and one of these for a single accent, at roughly an 80/20 split.
What is the opposite of Light Yellow on the color wheel?
The opposite (complementary) color is #e0e0ff, the same saturation and lightness rotated 180° around the HSL wheel. Complementary pairs give the strongest contrast, which is why the complement should be used sparingly rather than at equal weight.
Can I use Light Yellow for text?
Light Yellow as text on white has a contrast ratio of 1.02:1, which fails WCAG AA for body text (4.5:1) and for large text (3:1). On black it is 20.63:1, which passes for body text. Use it as text on dark surfaces, or as a fill with dark text on top.

Similar named colors

More yellows

We'd like to use Google cookies to understand how Nodlume is used and to measure our advertising. Nothing loads until you choose, and declining does not affect anything in the app.