#E2DF40#E2DF40

#E2DF40 is a very light, vivid yellow. Relative luminance 0.693; OKLCH L 87.9% C 0.171 H 108.4°. Best body text is #000000 at 14.86:1 contrast (WCAG AA passes).

Color values

HEX#E2DF40
RGBrgb(226, 223, 64)
HSLhsl(59, 74%, 57%)
HSVhsv(59, 72%, 89%)
CMYKcmyk(0%, 1.3%, 71.7%, 11.4%)
CIE-LABlab(86.66, -16.75, 73.39)
CIE-LCHlch(86.66, 75.28, 102.86°)
OKLaboklab(87.93% -0.0537 0.162)
OKLCHoklch(87.93% 0.171 108.4)
XYZxyz(58.6793, 69.3162, 15.1378)
Luminance0.6931 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#E2DF40 #4043E2
analogous
#E28E40 #E2DF40 #94E240
triadic
#E2DF40 #40E2DF #DF40E2
tetradic
#E2DF40 #40E28E #4043E2 #E24094
square
#E2DF40 #40E28E #4043E2 #E24094
split-complementary
#E2DF40 #4094E2 #8E40E2
monochromatic
#928F16 #C7C41E #E2DF40 #EAE875 #F2F1AA

Accessibility & contrast

On white

1.41
#E2DF40 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

14.86
#E2DF40 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #E2DF40
14.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##E2DF40#FFFFFF#000000##000000
##E2DF401.001.4114.8614.86
#FFFFFF1.411.0021.0021.00
#00000014.8621.001.001.00
##00000014.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#F1D621
Deuteranopia (green-blind)
#F4DB4C
Tritanopia (blue-blind)
#F2D1C0
Achromatopsia (no color)
#D9D9D9

Design tokens & code

CSS
--color: #e2df40;
/* rgb */ color: rgb(226, 223, 64);
/* oklch */ color: oklch(87.9% 0.171 108.4);
Tailwind
colors: {
  custom: {
    50: '#efe880',
    500: '#e2df40',
    950: '#000000',
  },
}
SCSS
$custom: #e2df40;
$custom-light: #efe880;
$custom-dark: #000000;
JSON
{
  "hex": "#e2df40",
  "rgb": {
    "r": 226,
    "g": 223,
    "b": 64
  },
  "hsl": {
    "h": 58.889,
    "s": 73.636,
    "l": 56.863
  },
  "oklch": {
    "l": 0.87925,
    "c": 0.17067,
    "h": 108.4
  },
  "luminance": 0.69314
}

Semantic roles & 50–950 ramp

primary
#E2DF40
secondary
#303296
accent
#3BF038
background
#FFFEFB
surface
#FFFCF2
border
#D7D5CC
text
#17160B
muted
#85847E

Preview Lab

Preview with #E2DF40

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

Preview Lab → · Contrast checker → · Palette generator →

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