#E2D951#E2D951

#E2D951 is a very light, vivid yellow. Relative luminance 0.664; OKLCH L 86.8% C 0.154 H 105.5°. Best body text is #000000 at 14.28:1 contrast (WCAG AA passes).

Color values

HEX#E2D951
RGBrgb(226, 217, 81)
HSLhsl(56, 71%, 60%)
HSVhsv(56, 64%, 89%)
CMYKcmyk(0%, 4%, 64.2%, 11.4%)
CIE-LABlab(85.20, -12.91, 65.61)
CIE-LCHlch(85.20, 66.87, 101.13°)
OKLaboklab(86.79% -0.0412 0.1484)
OKLCHoklch(86.79% 0.154 105.5)
XYZxyz(57.6642, 66.3906, 17.5601)
Luminance0.6639 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#E2D951 #515AE2
analogous
#E29151 #E2D951 #A2E251
triadic
#E2D951 #51E2D9 #D951E2
tetradic
#E2D951 #51E291 #515AE2 #E251A2
square
#E2D951 #51E291 #515AE2 #E251A2
split-complementary
#E2D951 #51A2E2 #9151E2
monochromatic
#9E961A #D3C823 #E2D951 #EBE485 #F3F0BA

Accessibility & contrast

On white

1.47
#E2D951 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

14.28
#E2D951 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #E2D951
14.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##E2D951#FFFFFF#000000##000000
##E2D9511.001.4714.2814.28
#FFFFFF1.471.0021.0021.00
#00000014.2821.001.001.00
##00000014.2821.001.001.00

Color blindness preview

Protanopia (red-blind)
#EBD13F
Deuteranopia (green-blind)
#EED859
Tritanopia (blue-blind)
#F2CBBD
Achromatopsia (no color)
#D5D5D5

Design tokens & code

CSS
--color: #e2d951;
/* rgb */ color: rgb(226, 217, 81);
/* oklch */ color: oklch(86.8% 0.154 105.5);
Tailwind
colors: {
  custom: {
    50: '#eee488',
    500: '#e2d951',
    950: '#000000',
  },
}
SCSS
$custom: #e2d951;
$custom-light: #eee488;
$custom-dark: #000000;
JSON
{
  "hex": "#e2d951",
  "rgb": {
    "r": 226,
    "g": 217,
    "b": 81
  },
  "hsl": {
    "h": 56.276,
    "s": 71.429,
    "l": 60.196
  },
  "oklch": {
    "l": 0.86793,
    "c": 0.15397,
    "h": 105.5
  },
  "luminance": 0.66389
}

Semantic roles & 50–950 ramp

primary
#E2D951
secondary
#363CA1
accent
#1ED312
background
#FFFEFC
surface
#FEFCF4
border
#D6D5CE
text
#17150C
muted
#85847F

Preview Lab

Preview with #E2D951

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

Preview Lab → · Contrast checker → · Palette generator →

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