#E2DE2F#E2DE2F

#E2DE2F is a very light, vivid yellow. Relative luminance 0.686; OKLCH L 87.6% C 0.178 H 108.2°. Best body text is #000000 at 14.72:1 contrast (WCAG AA passes).

Color values

HEX#E2DE2F
RGBrgb(226, 222, 47)
HSLhsl(59, 76%, 54%)
HSVhsv(59, 79%, 89%)
CMYKcmyk(0%, 1.8%, 79.2%, 11.4%)
CIE-LABlab(86.31, -16.91, 78.23)
CIE-LCHlch(86.31, 80.04, 102.20°)
OKLaboklab(87.62% -0.0556 0.1693)
OKLCHoklch(87.62% 0.178 108.2)
XYZxyz(58.0008, 68.6185, 12.8782)
Luminance0.6862 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#E2DE2F #2F33E2
analogous
#E2842F #E2DE2F #8CE22F
triadic
#E2DE2F #2FE2DE #DE2FE2
tetradic
#E2DE2F #2FE284 #2F33E2 #E22F8C
square
#E2DE2F #2FE284 #2F33E2 #E22F8C
split-complementary
#E2DE2F #2F8CE2 #842FE2
monochromatic
#848212 #BAB61A #E2DE2F #E9E765 #F1EF9A

Accessibility & contrast

On white

1.43
#E2DE2F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

14.72
#E2DE2F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #E2DE2F
14.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##E2DE2F#FFFFFF#000000##000000
##E2DE2F1.001.4314.7214.72
#FFFFFF1.431.0021.0021.00
#00000014.7221.001.001.00
##00000014.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#F1D500
Deuteranopia (green-blind)
#F4DB3F
Tritanopia (blue-blind)
#F3CFBE
Achromatopsia (no color)
#D8D8D8

Design tokens & code

CSS
--color: #e2de2f;
/* rgb */ color: rgb(226, 222, 47);
/* oklch */ color: oklch(87.6% 0.178 108.2);
Tailwind
colors: {
  custom: {
    50: '#efe778',
    500: '#e2de2f',
    950: '#000000',
  },
}
SCSS
$custom: #e2de2f;
$custom-light: #efe778;
$custom-dark: #000000;
JSON
{
  "hex": "#e2de2f",
  "rgb": {
    "r": 226,
    "g": 222,
    "b": 47
  },
  "hsl": {
    "h": 58.659,
    "s": 75.527,
    "l": 53.529
  },
  "oklch": {
    "l": 0.87623,
    "c": 0.17819,
    "h": 108.2
  },
  "luminance": 0.68617
}

Semantic roles & 50–950 ramp

primary
#E2DE2F
secondary
#2B2D8A
accent
#3AF236
background
#FFFEFB
surface
#FFFCF2
border
#D7D5CC
text
#17160A
muted
#85847D

Preview Lab

Preview with #E2DE2F

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

Preview Lab → · Contrast checker → · Palette generator →

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