#E2DC40#E2DC40

#E2DC40 is a very light, vivid yellow. Relative luminance 0.677; OKLCH L 87.3% C 0.168 H 107.2°. Best body text is #000000 at 14.55:1 contrast (WCAG AA passes).

Color values

HEX#E2DC40
RGBrgb(226, 220, 64)
HSLhsl(58, 74%, 57%)
HSVhsv(58, 72%, 89%)
CMYKcmyk(0%, 2.7%, 71.7%, 11.4%)
CIE-LABlab(85.87, -15.28, 72.64)
CIE-LCHlch(85.87, 74.23, 101.88°)
OKLaboklab(87.3% -0.0496 0.1604)
OKLCHoklch(87.3% 0.168 107.2)
XYZxyz(57.8849, 67.7273, 14.8730)
Luminance0.6773 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#E2DC40 #4046E2
analogous
#E28B40 #E2DC40 #97E240
triadic
#E2DC40 #40E2DC #DC40E2
tetradic
#E2DC40 #40E28B #4046E2 #E24097
square
#E2DC40 #40E28B #4046E2 #E24097
split-complementary
#E2DC40 #4097E2 #8B40E2
monochromatic
#928D16 #C7C01E #E2DC40 #EAE675 #F2EFAA

Accessibility & contrast

On white

1.44
#E2DC40 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

14.55
#E2DC40 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #E2DC40
14.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##E2DC40#FFFFFF#000000##000000
##E2DC401.001.4414.5514.55
#FFFFFF1.441.0021.0021.00
#00000014.5521.001.001.00
##00000014.5521.001.001.00

Color blindness preview

Protanopia (red-blind)
#EED423
Deuteranopia (green-blind)
#F1D94C
Tritanopia (blue-blind)
#F2CEBE
Achromatopsia (no color)
#D7D7D7

Design tokens & code

CSS
--color: #e2dc40;
/* rgb */ color: rgb(226, 220, 64);
/* oklch */ color: oklch(87.3% 0.168 107.2);
Tailwind
colors: {
  custom: {
    50: '#efe67f',
    500: '#e2dc40',
    950: '#000000',
  },
}
SCSS
$custom: #e2dc40;
$custom-light: #efe67f;
$custom-dark: #000000;
JSON
{
  "hex": "#e2dc40",
  "rgb": {
    "r": 226,
    "g": 220,
    "b": 64
  },
  "hsl": {
    "h": 57.778,
    "s": 73.636,
    "l": 56.863
  },
  "oklch": {
    "l": 0.87295,
    "c": 0.16789,
    "h": 107.2
  },
  "luminance": 0.67725
}

Semantic roles & 50–950 ramp

primary
#E2DC40
secondary
#303496
accent
#3EF038
background
#FFFEFB
surface
#FFFCF2
border
#D7D5CC
text
#17150B
muted
#85847E

Preview Lab

Preview with #E2DC40

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

Preview Lab → · Contrast checker → · Palette generator →

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