#E2DB12#E2DB12

#E2DB12 is a very light, vivid yellow. Relative luminance 0.669; OKLCH L 86.9% C 0.184 H 107.3°. Best body text is #000000 at 14.38:1 contrast (WCAG AA passes).

Color values

HEX#E2DB12
RGBrgb(226, 219, 18)
HSLhsl(58, 85%, 48%)
HSVhsv(58, 92%, 89%)
CMYKcmyk(0%, 3.1%, 92%, 11.4%)
CIE-LABlab(85.44, -16.08, 83.22)
CIE-LCHlch(85.44, 84.76, 100.94°)
OKLaboklab(86.9% -0.0548 0.1759)
OKLCHoklch(86.9% 0.184 107.3)
XYZxyz(56.8073, 66.8776, 10.4885)
Luminance0.6687 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#E2DB12 #1219E2
analogous
#E27312 #E2DB12 #81E212
triadic
#E2DB12 #12E2DB #DB12E2
tetradic
#E2DB12 #12E273 #1219E2 #E21281
square
#E2DB12 #12E273 #1219E2 #E21281
split-complementary
#E2DB12 #1281E2 #7312E2
monochromatic
#716D09 #A9A40D #E2DB12 #F0EA41 #F4F07A

Accessibility & contrast

On white

1.46
#E2DB12 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

14.38
#E2DB12 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #E2DB12
14.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##E2DB12#FFFFFF#000000##000000
##E2DB121.001.4614.3814.38
#FFFFFF1.461.0021.0021.00
#00000014.3821.001.001.00
##00000014.3821.001.001.00

Color blindness preview

Protanopia (red-blind)
#EFD200
Deuteranopia (green-blind)
#F2D82E
Tritanopia (blue-blind)
#F3CCBB
Achromatopsia (no color)
#D5D5D5

Design tokens & code

CSS
--color: #e2db12;
/* rgb */ color: rgb(226, 219, 18);
/* oklch */ color: oklch(86.9% 0.184 107.3);
Tailwind
colors: {
  custom: {
    50: '#f0e56f',
    500: '#e2db12',
    950: '#000000',
  },
}
SCSS
$custom: #e2db12;
$custom-light: #f0e56f;
$custom-dark: #000000;
JSON
{
  "hex": "#e2db12",
  "rgb": {
    "r": 226,
    "g": 219,
    "b": 18
  },
  "hsl": {
    "h": 57.981,
    "s": 85.246,
    "l": 47.843
  },
  "oklch": {
    "l": 0.86901,
    "c": 0.18423,
    "h": 107.3
  },
  "luminance": 0.66875
}

Semantic roles & 50–950 ramp

primary
#E2DB12
secondary
#1F227A
accent
#33FB2C
background
#FFFEFB
surface
#FFFCF1
border
#D7D5CB
text
#181509
muted
#86847D

Preview Lab

Preview with #E2DB12

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

Preview Lab → · Contrast checker → · Palette generator →

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