#E2CC52#E2CC52

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

Color values

HEX#E2CC52
RGBrgb(226, 204, 82)
HSLhsl(51, 71%, 60%)
HSVhsv(51, 64%, 89%)
CMYKcmyk(0%, 9.7%, 63.7%, 11.4%)
CIE-LABlab(81.82, -6.29, 61.63)
CIE-LCHlch(81.82, 61.95, 95.83°)
OKLaboklab(84.11% -0.0223 0.1401)
OKLCHoklch(84.11% 0.142 99)
XYZxyz(54.4822, 59.9661, 16.6858)
Luminance0.5996 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#E2CC52 #5268E2
analogous
#E28452 #E2CC52 #B0E252
triadic
#E2CC52 #52E2CC #CC52E2
tetradic
#E2CC52 #52E284 #5268E2 #E252B0
square
#E2CC52 #52E284 #5268E2 #E252B0
split-complementary
#E2CC52 #52B0E2 #8452E2
monochromatic
#9F8B1B #D3B823 #E2CC52 #EBDB86 #F4EBBB

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##E2CC52#FFFFFF#000000##000000
##E2CC521.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)
#DEC743
Deuteranopia (green-blind)
#E5CF58
Tritanopia (blue-blind)
#F3BEB2
Achromatopsia (no color)
#CBCBCB

Design tokens & code

CSS
--color: #e2cc52;
/* rgb */ color: rgb(226, 204, 82);
/* oklch */ color: oklch(84.1% 0.142 99.0);
Tailwind
colors: {
  custom: {
    50: '#eedb88',
    500: '#e2cc52',
    950: '#000000',
  },
}
SCSS
$custom: #e2cc52;
$custom-light: #eedb88;
$custom-dark: #000000;
JSON
{
  "hex": "#e2cc52",
  "rgb": {
    "r": 226,
    "g": 204,
    "b": 82
  },
  "hsl": {
    "h": 50.833,
    "s": 71.287,
    "l": 60.392
  },
  "oklch": {
    "l": 0.84114,
    "c": 0.14184,
    "h": 99
  },
  "luminance": 0.59964
}

Semantic roles & 50–950 ramp

primary
#E2CC52
secondary
#3647A2
accent
#30D312
background
#FFFEFC
surface
#FEFBF4
border
#D6D4CE
text
#17140C
muted
#85837F

Preview Lab

Preview with #E2CC52

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

Preview Lab → · Contrast checker → · Palette generator →

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