#E4E942#E4E942

#E4E942 is a very light, vivid yellow. Relative luminance 0.752; OKLCH L 90.2% C 0.179 H 111.2°. Best body text is #000000 at 16.03:1 contrast (WCAG AA passes).

Color values

HEX#E4E942
RGBrgb(228, 233, 66)
HSLhsl(62, 79%, 59%)
HSVhsv(62, 72%, 91%)
CMYKcmyk(2.1%, 0%, 71.7%, 8.6%)
CIE-LABlab(89.47, -20.71, 75.46)
CIE-LCHlch(89.47, 78.25, 105.35°)
OKLaboklab(90.21% -0.0647 0.1666)
OKLCHoklch(90.21% 0.179 111.2)
XYZxyz(62.1193, 75.1668, 16.3896)
Luminance0.7517 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#E4E942 #4742E9
analogous
#E99A42 #E4E942 #90E942
triadic
#E4E942 #42E4E9 #E942E4
tetradic
#E4E942 #42E99A #4742E9 #E94290
square
#E4E942 #42E99A #4742E9 #E94290
split-complementary
#E4E942 #4290E9 #9A42E9
monochromatic
#9A9E12 #CFD519 #E4E942 #ECEF79 #F4F6B0

Accessibility & contrast

On white

1.31
#E4E942 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

16.03
#E4E942 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #E4E942
16.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##E4E942#FFFFFF#000000##000000
##E4E9421.001.3116.0316.03
#FFFFFF1.311.0021.0021.00
#00000016.0321.001.001.00
##00000016.0321.001.001.00

Color blindness preview

Protanopia (red-blind)
#FBDF21
Deuteranopia (green-blind)
#FCE34F
Tritanopia (blue-blind)
#F4DBC9
Achromatopsia (no color)
#E1E1E1

Design tokens & code

CSS
--color: #e4e942;
/* rgb */ color: rgb(228, 233, 66);
/* oklch */ color: oklch(90.2% 0.179 111.2);
Tailwind
colors: {
  custom: {
    50: '#f0ef82',
    500: '#e4e942',
    950: '#000000',
  },
}
SCSS
$custom: #e4e942;
$custom-light: #f0ef82;
$custom-dark: #000000;
JSON
{
  "hex": "#e4e942",
  "rgb": {
    "r": 228,
    "g": 233,
    "b": 66
  },
  "hsl": {
    "h": 61.796,
    "s": 79.147,
    "l": 58.627
  },
  "oklch": {
    "l": 0.90213,
    "c": 0.17877,
    "h": 111.2
  },
  "luminance": 0.75165
}

Semantic roles & 50–950 ramp

primary
#E4E942
secondary
#322EA1
accent
#32F638
background
#FFFFFB
surface
#FFFEF2
border
#D7D6CC
text
#17160B
muted
#85857E

Preview Lab

Preview with #E4E942

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

Preview Lab → · Contrast checker → · Palette generator →

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