#E8D171#E8D171

#E8D171 is a very light, moderate yellow. Relative luminance 0.639; OKLCH L 86.0% C 0.119 H 96.2°. Best body text is #000000 at 13.79:1 contrast (WCAG AA passes).

Color values

HEX#E8D171
RGBrgb(232, 209, 113)
HSLhsl(48, 72%, 68%)
HSVhsv(48, 51%, 91%)
CMYKcmyk(0%, 9.9%, 51.3%, 9%)
CIE-LABlab(83.94, -4.11, 50.08)
CIE-LCHlch(83.94, 50.25, 94.69°)
OKLaboklab(86.02% -0.0129 0.1187)
OKLCHoklch(86.02% 0.119 96.2)
XYZxyz(59.0618, 63.9514, 24.8524)
Luminance0.6395 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#E8D171 #7188E8
analogous
#E89571 #E8D171 #C4E871
triadic
#E8D171 #71E8D1 #D171E8
tetradic
#E8D171 #71E895 #7188E8 #E871C4
square
#E8D171 #71E895 #7188E8 #E871C4
split-complementary
#E8D171 #71C4E8 #9571E8
monochromatic
#C0A11F #DFC03C #E8D171 #F1E2A6 #F9F3DA

Accessibility & contrast

On white

1.52
#E8D171 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.79
#E8D171 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #E8D171
13.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##E8D171#FFFFFF#000000##000000
##E8D1711.001.5213.7913.79
#FFFFFF1.521.0021.0021.00
#00000013.7921.001.001.00
##00000013.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#E2CD69
Deuteranopia (green-blind)
#E8D575
Tritanopia (blue-blind)
#F8C4BB
Achromatopsia (no color)
#D1D1D1

Design tokens & code

CSS
--color: #e8d171;
/* rgb */ color: rgb(232, 209, 113);
/* oklch */ color: oklch(86.0% 0.119 96.2);
Tailwind
colors: {
  custom: {
    50: '#f2de9c',
    500: '#e8d171',
    950: '#000000',
  },
}
SCSS
$custom: #e8d171;
$custom-light: #f2de9c;
$custom-dark: #000000;
JSON
{
  "hex": "#e8d171",
  "rgb": {
    "r": 232,
    "g": 209,
    "b": 113
  },
  "hsl": {
    "h": 48.403,
    "s": 72.121,
    "l": 67.647
  },
  "oklch": {
    "l": 0.86018,
    "c": 0.11941,
    "h": 96.2
  },
  "luminance": 0.63949
}

Semantic roles & 50–950 ramp

primary
#E8D171
secondary
#3F57BF
accent
#37D411
background
#FFFEFC
surface
#FEFCF5
border
#D6D5CF
text
#17150E
muted
#85847F

Preview Lab

Preview with #E8D171

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

Preview Lab → · Contrast checker → · Palette generator →

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