#E4E871#E4E871

#E4E871 is a very light, vivid yellow. Relative luminance 0.754; OKLCH L 90.4% C 0.142 H 110.7°. Best body text is #000000 at 16.08:1 contrast (WCAG AA passes).

Color values

HEX#E4E871
RGBrgb(228, 232, 113)
HSLhsl(62, 72%, 68%)
HSVhsv(62, 51%, 91%)
CMYKcmyk(1.7%, 0%, 51.3%, 9%)
CIE-LABlab(89.58, -17.22, 56.68)
CIE-LCHlch(89.58, 59.24, 106.90°)
OKLaboklab(90.42% -0.0502 0.1332)
OKLCHoklch(90.42% 0.142 110.7)
XYZxyz(63.8336, 75.4008, 26.8108)
Luminance0.7540 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#E4E871 #7571E8
analogous
#E8B171 #E4E871 #A8E871
triadic
#E4E871 #71E4E8 #E871E4
tetradic
#E4E871 #71E8B1 #7571E8 #E871A8
square
#E4E871 #71E8B1 #7571E8 #E871A8
split-complementary
#E4E871 #71A8E8 #B171E8
monochromatic
#BAC01F #DADF3C #E4E871 #EEF1A6 #F8F9DA

Accessibility & contrast

On white

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

On black

16.08
#E4E871 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #E4E871
16.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##E4E871#FFFFFF#000000##000000
##E4E8711.001.3116.0816.08
#FFFFFF1.311.0021.0021.00
#00000016.0821.001.001.00
##00000016.0821.001.001.00

Color blindness preview

Protanopia (red-blind)
#F7DF66
Deuteranopia (green-blind)
#F8E377
Tritanopia (blue-blind)
#F1DCCD
Achromatopsia (no color)
#E1E1E1

Design tokens & code

CSS
--color: #e4e871;
/* rgb */ color: rgb(228, 232, 113);
/* oklch */ color: oklch(90.4% 0.142 110.7);
Tailwind
colors: {
  custom: {
    50: '#efef9d',
    500: '#e4e871',
    950: '#000000',
  },
}
SCSS
$custom: #e4e871;
$custom-light: #efef9d;
$custom-dark: #000000;
JSON
{
  "hex": "#e4e871",
  "rgb": {
    "r": 228,
    "g": 232,
    "b": 113
  },
  "hsl": {
    "h": 62.017,
    "s": 72.121,
    "l": 67.647
  },
  "oklch": {
    "l": 0.9042,
    "c": 0.14231,
    "h": 110.7
  },
  "luminance": 0.75399
}

Semantic roles & 50–950 ramp

primary
#E4E871
secondary
#433FBF
accent
#11D418
background
#FFFFFC
surface
#FEFEF5
border
#D6D6CF
text
#17160E
muted
#85857F

Preview Lab

Preview with #E4E871

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

Preview Lab → · Contrast checker → · Palette generator →

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