#E2D040#E2D040

#E2D040 is a very light, vivid yellow. Relative luminance 0.617; OKLCH L 84.8% C 0.157 H 102.0°. Best body text is #000000 at 13.33:1 contrast (WCAG AA passes).

Color values

HEX#E2D040
RGBrgb(226, 208, 64)
HSLhsl(53, 74%, 57%)
HSVhsv(53, 72%, 89%)
CMYKcmyk(0%, 8%, 71.7%, 11.4%)
CIE-LABlab(82.73, -9.28, 69.61)
CIE-LCHlch(82.73, 70.23, 97.60°)
OKLaboklab(84.79% -0.0327 0.154)
OKLCHoklch(84.79% 0.157 102)
XYZxyz(54.8478, 61.6531, 13.8607)
Luminance0.6165 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#E2D040 #4052E2
analogous
#E27F40 #E2D040 #A3E240
triadic
#E2D040 #40E2D0 #D040E2
tetradic
#E2D040 #40E27F #4052E2 #E240A3
square
#E2D040 #40E27F #4052E2 #E240A3
split-complementary
#E2D040 #40A3E2 #7F40E2
monochromatic
#928416 #C7B41E #E2D040 #EADD75 #F2EAAA

Accessibility & contrast

On white

1.58
#E2D040 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.33
#E2D040 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #E2D040
13.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##E2D040#FFFFFF#000000##000000
##E2D0401.001.5813.3313.33
#FFFFFF1.581.0021.0021.00
#00000013.3321.001.001.00
##00000013.3321.001.001.00

Color blindness preview

Protanopia (red-blind)
#E3CA27
Deuteranopia (green-blind)
#E8D14A
Tritanopia (blue-blind)
#F3C1B4
Achromatopsia (no color)
#CECECE

Design tokens & code

CSS
--color: #e2d040;
/* rgb */ color: rgb(226, 208, 64);
/* oklch */ color: oklch(84.8% 0.157 102.0);
Tailwind
colors: {
  custom: {
    50: '#efde7e',
    500: '#e2d040',
    950: '#000000',
  },
}
SCSS
$custom: #e2d040;
$custom-light: #efde7e;
$custom-dark: #000000;
JSON
{
  "hex": "#e2d040",
  "rgb": {
    "r": 226,
    "g": 208,
    "b": 64
  },
  "hsl": {
    "h": 53.333,
    "s": 73.636,
    "l": 56.863
  },
  "oklch": {
    "l": 0.84794,
    "c": 0.15744,
    "h": 102
  },
  "luminance": 0.61651
}

Semantic roles & 50–950 ramp

primary
#E2D040
secondary
#303B96
accent
#4CF038
background
#FFFEFB
surface
#FFFCF2
border
#D7D5CC
text
#17150B
muted
#85847E

Preview Lab

Preview with #E2D040

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

Preview Lab → · Contrast checker → · Palette generator →

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