#E2CC51#E2CC51

#E2CC51 is a very light, vivid yellow. Relative luminance 0.599; OKLCH L 84.1% C 0.143 H 99.1°. Best body text is #000000 at 12.99:1 contrast (WCAG AA passes).

Color values

HEX#E2CC51
RGBrgb(226, 204, 81)
HSLhsl(51, 71%, 60%)
HSVhsv(51, 64%, 89%)
CMYKcmyk(0%, 9.7%, 64.2%, 11.4%)
CIE-LABlab(81.81, -6.35, 62.04)
CIE-LCHlch(81.81, 62.37, 95.85°)
OKLaboklab(84.1% -0.0226 0.1408)
OKLCHoklch(84.1% 0.143 99.1)
XYZxyz(54.4444, 59.9510, 16.4869)
Luminance0.5995 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#E2CC51 #5167E2
analogous
#E28451 #E2CC51 #AFE251
triadic
#E2CC51 #51E2CC #CC51E2
tetradic
#E2CC51 #51E284 #5167E2 #E251AF
square
#E2CC51 #51E284 #5167E2 #E251AF
split-complementary
#E2CC51 #51AFE2 #8451E2
monochromatic
#9E8A1A #D3B823 #E2CC51 #EBDB85 #F3EBBA

Accessibility & contrast

On white

1.62
#E2CC51 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.99
#E2CC51 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #E2CC51
12.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##E2CC51#FFFFFF#000000##000000
##E2CC511.001.6212.9912.99
#FFFFFF1.621.0021.0021.00
#00000012.9921.001.001.00
##00000012.9921.001.001.00

Color blindness preview

Protanopia (red-blind)
#DFC742
Deuteranopia (green-blind)
#E5CF58
Tritanopia (blue-blind)
#F3BEB2
Achromatopsia (no color)
#CBCBCB

Design tokens & code

CSS
--color: #e2cc51;
/* rgb */ color: rgb(226, 204, 81);
/* oklch */ color: oklch(84.1% 0.143 99.1);
Tailwind
colors: {
  custom: {
    50: '#eedb87',
    500: '#e2cc51',
    950: '#000000',
  },
}
SCSS
$custom: #e2cc51;
$custom-light: #eedb87;
$custom-dark: #000000;
JSON
{
  "hex": "#e2cc51",
  "rgb": {
    "r": 226,
    "g": 204,
    "b": 81
  },
  "hsl": {
    "h": 50.897,
    "s": 71.429,
    "l": 60.196
  },
  "oklch": {
    "l": 0.84105,
    "c": 0.1426,
    "h": 99.1
  },
  "luminance": 0.59949
}

Semantic roles & 50–950 ramp

primary
#E2CC51
secondary
#3646A1
accent
#2FD312
background
#FFFEFC
surface
#FEFBF4
border
#D6D4CE
text
#17140C
muted
#85837F

Preview Lab

Preview with #E2CC51

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#E2CC51 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva