#E2CD51#E2CD51

#E2CD51 is a very light, vivid yellow. Relative luminance 0.604; OKLCH L 84.3% C 0.143 H 99.7°. Best body text is #000000 at 13.09:1 contrast (WCAG AA passes).

Color values

HEX#E2CD51
RGBrgb(226, 205, 81)
HSLhsl(51, 71%, 60%)
HSVhsv(51, 64%, 89%)
CMYKcmyk(0%, 9.3%, 64.2%, 11.4%)
CIE-LABlab(82.07, -6.86, 62.32)
CIE-LCHlch(82.07, 62.69, 96.28°)
OKLaboklab(84.31% -0.024 0.1414)
OKLCHoklch(84.31% 0.143 99.7)
XYZxyz(54.6829, 60.4279, 16.5664)
Luminance0.6042 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#E2CD51 #5166E2
analogous
#E28451 #E2CD51 #AFE251
triadic
#E2CD51 #51E2CD #CD51E2
tetradic
#E2CD51 #51E284 #5166E2 #E251AF
square
#E2CD51 #51E284 #5166E2 #E251AF
split-complementary
#E2CD51 #51AFE2 #8451E2
monochromatic
#9E8B1A #D3B923 #E2CD51 #EBDC85 #F3EBBA

Accessibility & contrast

On white

1.60
#E2CD51 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.09
#E2CD51 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #E2CD51
13.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##E2CD51#FFFFFF#000000##000000
##E2CD511.001.6013.0913.09
#FFFFFF1.601.0021.0021.00
#00000013.0921.001.001.00
##00000013.0921.001.001.00

Color blindness preview

Protanopia (red-blind)
#DFC842
Deuteranopia (green-blind)
#E5D058
Tritanopia (blue-blind)
#F3BFB3
Achromatopsia (no color)
#CCCCCC

Design tokens & code

CSS
--color: #e2cd51;
/* rgb */ color: rgb(226, 205, 81);
/* oklch */ color: oklch(84.3% 0.143 99.7);
Tailwind
colors: {
  custom: {
    50: '#eedb87',
    500: '#e2cd51',
    950: '#000000',
  },
}
SCSS
$custom: #e2cd51;
$custom-light: #eedb87;
$custom-dark: #000000;
JSON
{
  "hex": "#e2cd51",
  "rgb": {
    "r": 226,
    "g": 205,
    "b": 81
  },
  "hsl": {
    "h": 51.31,
    "s": 71.429,
    "l": 60.196
  },
  "oklch": {
    "l": 0.8431,
    "c": 0.14341,
    "h": 99.7
  },
  "luminance": 0.60425
}

Semantic roles & 50–950 ramp

primary
#E2CD51
secondary
#3645A1
accent
#2ED312
background
#FFFEFC
surface
#FEFBF4
border
#D6D4CE
text
#17150C
muted
#85847F

Preview Lab

Preview with #E2CD51

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

Preview Lab → · Contrast checker → · Palette generator →

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