#E2DC31#E2DC31

#E2DC31 is a very light, vivid yellow. Relative luminance 0.676; OKLCH L 87.2% C 0.176 H 107.4°. Best body text is #000000 at 14.52:1 contrast (WCAG AA passes).

Color values

HEX#E2DC31
RGBrgb(226, 220, 49)
HSLhsl(58, 75%, 54%)
HSVhsv(58, 78%, 89%)
CMYKcmyk(0%, 2.7%, 78.3%, 11.4%)
CIE-LABlab(85.80, -15.86, 77.23)
CIE-LCHlch(85.80, 78.84, 101.61°)
OKLaboklab(87.21% -0.0525 0.1675)
OKLCHoklch(87.21% 0.176 107.4)
XYZxyz(57.5140, 67.5789, 12.9196)
Luminance0.6758 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#E2DC31 #3137E2
analogous
#E28431 #E2DC31 #90E231
triadic
#E2DC31 #31E2DC #DC31E2
tetradic
#E2DC31 #31E284 #3137E2 #E23190
square
#E2DC31 #31E284 #3137E2 #E23190
split-complementary
#E2DC31 #3190E2 #8431E2
monochromatic
#868213 #BBB61A #E2DC31 #EAE567 #F1EE9C

Accessibility & contrast

On white

1.45
#E2DC31 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

14.52
#E2DC31 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #E2DC31
14.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##E2DC31#FFFFFF#000000##000000
##E2DC311.001.4514.5214.52
#FFFFFF1.451.0021.0021.00
#00000014.5221.001.001.00
##00000014.5221.001.001.00

Color blindness preview

Protanopia (red-blind)
#EFD300
Deuteranopia (green-blind)
#F2D940
Tritanopia (blue-blind)
#F3CDBD
Achromatopsia (no color)
#D6D6D6

Design tokens & code

CSS
--color: #e2dc31;
/* rgb */ color: rgb(226, 220, 49);
/* oklch */ color: oklch(87.2% 0.176 107.4);
Tailwind
colors: {
  custom: {
    50: '#efe678',
    500: '#e2dc31',
    950: '#000000',
  },
}
SCSS
$custom: #e2dc31;
$custom-light: #efe678;
$custom-dark: #000000;
JSON
{
  "hex": "#e2dc31",
  "rgb": {
    "r": 226,
    "g": 220,
    "b": 49
  },
  "hsl": {
    "h": 57.966,
    "s": 75.319,
    "l": 53.922
  },
  "oklch": {
    "l": 0.87212,
    "c": 0.17554,
    "h": 107.4
  },
  "luminance": 0.67577
}

Semantic roles & 50–950 ramp

primary
#E2DC31
secondary
#2B2F8C
accent
#3CF236
background
#FFFEFB
surface
#FFFCF2
border
#D7D5CC
text
#17150A
muted
#85847D

Preview Lab

Preview with #E2DC31

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

Preview Lab → · Contrast checker → · Palette generator →

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