#E2DC52#E2DC52

#E2DC52 is a very light, vivid yellow. Relative luminance 0.680; OKLCH L 87.4% C 0.156 H 106.8°. Best body text is #000000 at 14.59:1 contrast (WCAG AA passes).

Color values

HEX#E2DC52
RGBrgb(226, 220, 82)
HSLhsl(58, 71%, 60%)
HSVhsv(58, 64%, 89%)
CMYKcmyk(0%, 2.7%, 63.7%, 11.4%)
CIE-LABlab(85.99, -14.34, 66.04)
CIE-LCHlch(85.99, 67.58, 102.25°)
OKLaboklab(87.43% -0.0452 0.1494)
OKLCHoklch(87.43% 0.156 106.8)
XYZxyz(58.4823, 67.9663, 18.0192)
Luminance0.6796 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#E2DC52 #5258E2
analogous
#E29452 #E2DC52 #A0E252
triadic
#E2DC52 #52E2DC #DC52E2
tetradic
#E2DC52 #52E294 #5258E2 #E252A0
square
#E2DC52 #52E294 #5258E2 #E252A0
split-complementary
#E2DC52 #52A0E2 #9452E2
monochromatic
#9F991B #D3CC23 #E2DC52 #EBE786 #F4F1BB

Accessibility & contrast

On white

1.44
#E2DC52 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

14.59
#E2DC52 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #E2DC52
14.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##E2DC52#FFFFFF#000000##000000
##E2DC521.001.4414.5914.59
#FFFFFF1.441.0021.0021.00
#00000014.5921.001.001.00
##00000014.5921.001.001.00

Color blindness preview

Protanopia (red-blind)
#EED440
Deuteranopia (green-blind)
#F1DA5B
Tritanopia (blue-blind)
#F2CEBF
Achromatopsia (no color)
#D7D7D7

Design tokens & code

CSS
--color: #e2dc52;
/* rgb */ color: rgb(226, 220, 82);
/* oklch */ color: oklch(87.4% 0.156 106.8);
Tailwind
colors: {
  custom: {
    50: '#eee689',
    500: '#e2dc52',
    950: '#000000',
  },
}
SCSS
$custom: #e2dc52;
$custom-light: #eee689;
$custom-dark: #000000;
JSON
{
  "hex": "#e2dc52",
  "rgb": {
    "r": 226,
    "g": 220,
    "b": 82
  },
  "hsl": {
    "h": 57.5,
    "s": 71.287,
    "l": 60.392
  },
  "oklch": {
    "l": 0.87428,
    "c": 0.15609,
    "h": 106.8
  },
  "luminance": 0.67964
}

Semantic roles & 50–950 ramp

primary
#E2DC52
secondary
#363BA2
accent
#1AD312
background
#FFFEFC
surface
#FEFCF4
border
#D6D5CE
text
#17150C
muted
#85847F

Preview Lab

Preview with #E2DC52

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

Preview Lab → · Contrast checker → · Palette generator →

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