Skip to content

Light Yellow

Hex #FFFFE0, rgb(255 255 224). A white CSS named color.

Open in palette generator

Light Yellow color codes

Click any value to copy it.

HEX
RGB
HSL
HSV
HWB
CMYK
OKLCH
OKLab
Lab
LCH
CSS keyword

About Light Yellow

Light Yellow is a very light near-white with the hex code #FFFFE0. In RGB it is made of 255 red, 255 green and 224 blue; in HSL its hue is 60°, with 100% saturation and 94% lightness. Its perceptual lightness (OKLCH L) is 99.2%.

It is a CSS named color, so you can write "lightyellow" anywhere CSS accepts a color. Against white it has a contrast ratio of 1.02:1 and against black 20.63:1, so black text reads better on it and passes WCAG AA for normal text.

Tints, shades and tones

Light Yellow mixed step by step with white, black and middle gray (#808080).

Tints (with white)

Shades (with black)

Tones (with gray)

Light Yellow 50-950 scale

A Tailwind-style scale built in OKLCH; the original color sits on the step with the closest lightness.

Colors that go with Light Yellow

Color harmonies rotate the hue in OKLCH and keep the lightness and chroma. Each color links to its closest named color.

Complementary

Analogous

Triadic

Split complementary

Tetradic

Square

Monochromatic

Contrast and readability

WCAG 2 contrast of Light Yellow with white and black. The readable text color on Light Yellow is black.

Light Yellow textSmall text on white

On white1.02:1

  • AA fail
  • AA Large fail
  • AAA fail
  • UI 3:1 fail

APCA Lc 0

Light Yellow textSmall text on black

On black20.63:1

  • AA pass
  • AA Large pass
  • AAA pass
  • UI 3:1 pass

APCA Lc -107

Black text on Light Yellow (#000000)

Test any pair in the contrast checker.

Color blindness preview

How Light Yellow appears with each type of color vision deficiency (simulated with the Machado model).

  • Protanopia#FFFCDE
  • Deuteranopia#FFFEE1
  • Tritanopia#FFFBF6
  • Protanomaly#FFFDDF
  • Deuteranomaly#FFFEE1
  • Tritanomaly#FFFDEA
  • Achromatopsia#FDFDFD

Colors similar to Light Yellow

The closest named colors by perceptual difference (OKLab).

Use Light Yellow in CSS and Tailwind

CSS
.light-yellow {
  color: lightyellow; /* #FFFFE0 */
  background-color: rgb(255 255 224);
  border-color: oklch(99.2% 0.04 107.1);
}
Tailwind CSS
/* Tailwind CSS v4: bg-light-yellow-500, text-light-yellow-700... */
@theme {
  --color-light-yellow-50: #FFFFE0;
  --color-light-yellow-100: #F6F5AC;
  --color-light-yellow-200: #EAE442;
  --color-light-yellow-300: #CFC800;
  --color-light-yellow-400: #A8A200;
  --color-light-yellow-500: #908B00;
  --color-light-yellow-600: #7B7700;
  --color-light-yellow-700: #635F00;
  --color-light-yellow-800: #4F4C00;
  --color-light-yellow-900: #403E00;
  --color-light-yellow-950: #181700;
}

<!-- or the exact color, no config -->
<div class="bg-[#FFFFE0] text-[#000000]">…</div>