#E8E171#E8E171

#E8E171 is a very light, vivid yellow. Relative luminance 0.722; OKLCH L 89.3% C 0.134 H 105.6°. Best body text is #000000 at 15.44:1 contrast (WCAG AA passes).

Color values

HEX#E8E171
RGBrgb(232, 225, 113)
HSLhsl(56, 72%, 68%)
HSVhsv(56, 51%, 91%)
CMYKcmyk(0%, 3%, 51.3%, 9%)
CIE-LABlab(88.06, -12.18, 54.98)
CIE-LCHlch(88.06, 56.31, 102.49°)
OKLaboklab(89.29% -0.0361 0.1294)
OKLCHoklch(89.29% 0.134 105.6)
XYZxyz(63.1863, 72.2004, 26.2272)
Luminance0.7220 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#E8E171 #7178E8
analogous
#E8A671 #E8E171 #B3E871
triadic
#E8E171 #71E8E1 #E171E8
tetradic
#E8E171 #71E8A6 #7178E8 #E871B3
square
#E8E171 #71E8A6 #7178E8 #E871B3
split-complementary
#E8E171 #71B3E8 #A671E8
monochromatic
#C0B61F #DFD63C #E8E171 #F1ECA6 #F9F7DA

Accessibility & contrast

On white

1.36
#E8E171 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

15.44
#E8E171 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #E8E171
15.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##E8E171#FFFFFF#000000##000000
##E8E1711.001.3615.4415.44
#FFFFFF1.361.0021.0021.00
#00000015.4421.001.001.00
##00000015.4421.001.001.00

Color blindness preview

Protanopia (red-blind)
#F1DA67
Deuteranopia (green-blind)
#F4DF76
Tritanopia (blue-blind)
#F7D5C8
Achromatopsia (no color)
#DDDDDD

Design tokens & code

CSS
--color: #e8e171;
/* rgb */ color: rgb(232, 225, 113);
/* oklch */ color: oklch(89.3% 0.134 105.6);
Tailwind
colors: {
  custom: {
    50: '#f1ea9d',
    500: '#e8e171',
    950: '#000000',
  },
}
SCSS
$custom: #e8e171;
$custom-light: #f1ea9d;
$custom-dark: #000000;
JSON
{
  "hex": "#e8e171",
  "rgb": {
    "r": 232,
    "g": 225,
    "b": 113
  },
  "hsl": {
    "h": 56.471,
    "s": 72.121,
    "l": 67.647
  },
  "oklch": {
    "l": 0.89289,
    "c": 0.13434,
    "h": 105.6
  },
  "luminance": 0.72198
}

Semantic roles & 50–950 ramp

primary
#E8E171
secondary
#3F46BF
accent
#1DD411
background
#FFFEFC
surface
#FEFCF5
border
#D6D5CF
text
#17160E
muted
#85847F

Preview Lab

Preview with #E8E171

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

Preview Lab → · Contrast checker → · Palette generator →

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