#E2DF2F#E2DF2F

#E2DF2F is a very light, vivid yellow. Relative luminance 0.691; OKLCH L 87.8% C 0.179 H 108.5°. Best body text is #000000 at 14.83:1 contrast (WCAG AA passes).

Color values

HEX#E2DF2F
RGBrgb(226, 223, 47)
HSLhsl(59, 76%, 54%)
HSVhsv(59, 79%, 89%)
CMYKcmyk(0%, 1.3%, 79.2%, 11.4%)
CIE-LABlab(86.58, -17.40, 78.46)
CIE-LCHlch(86.58, 80.37, 102.51°)
OKLaboklab(87.83% -0.0569 0.1698)
OKLCHoklch(87.83% 0.179 108.5)
XYZxyz(58.2671, 69.1513, 12.9670)
Luminance0.6915 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#E2DF2F #2F32E2
analogous
#E2852F #E2DF2F #8CE22F
triadic
#E2DF2F #2FE2DF #DF2FE2
tetradic
#E2DF2F #2FE285 #2F32E2 #E22F8C
square
#E2DF2F #2FE285 #2F32E2 #E22F8C
split-complementary
#E2DF2F #2F8CE2 #852FE2
monochromatic
#848212 #BAB71A #E2DF2F #E9E765 #F1F09A

Accessibility & contrast

On white

1.42
#E2DF2F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

14.83
#E2DF2F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #E2DF2F
14.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##E2DF2F#FFFFFF#000000##000000
##E2DF2F1.001.4214.8314.83
#FFFFFF1.421.0021.0021.00
#00000014.8321.001.001.00
##00000014.8321.001.001.00

Color blindness preview

Protanopia (red-blind)
#F2D600
Deuteranopia (green-blind)
#F4DB3F
Tritanopia (blue-blind)
#F3D0BF
Achromatopsia (no color)
#D9D9D9

Design tokens & code

CSS
--color: #e2df2f;
/* rgb */ color: rgb(226, 223, 47);
/* oklch */ color: oklch(87.8% 0.179 108.5);
Tailwind
colors: {
  custom: {
    50: '#efe878',
    500: '#e2df2f',
    950: '#000000',
  },
}
SCSS
$custom: #e2df2f;
$custom-light: #efe878;
$custom-dark: #000000;
JSON
{
  "hex": "#e2df2f",
  "rgb": {
    "r": 226,
    "g": 223,
    "b": 47
  },
  "hsl": {
    "h": 58.994,
    "s": 75.527,
    "l": 53.529
  },
  "oklch": {
    "l": 0.87834,
    "c": 0.17909,
    "h": 108.5
  },
  "luminance": 0.69149
}

Semantic roles & 50–950 ramp

primary
#E2DF2F
secondary
#2B2C8A
accent
#39F236
background
#FFFEFB
surface
#FFFCF2
border
#D7D5CC
text
#17160A
muted
#85847D

Preview Lab

Preview with #E2DF2F

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

Preview Lab → · Contrast checker → · Palette generator →

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