#E8D172#E8D172

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

Color values

HEX#E8D172
RGBrgb(232, 209, 114)
HSLhsl(48, 72%, 68%)
HSVhsv(48, 51%, 91%)
CMYKcmyk(0%, 9.9%, 50.9%, 9%)
CIE-LABlab(83.95, -4.02, 49.62)
CIE-LCHlch(83.95, 49.78, 94.63°)
OKLaboklab(86.03% -0.0125 0.1178)
OKLCHoklch(86.03% 0.118 96.1)
XYZxyz(59.1184, 63.9741, 25.1505)
Luminance0.6397 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#E8D172 #7289E8
analogous
#E89672 #E8D172 #C4E872
triadic
#E8D172 #72E8D1 #D172E8
tetradic
#E8D172 #72E896 #7289E8 #E872C4
square
#E8D172 #72E896 #7289E8 #E872C4
split-complementary
#E8D172 #72C4E8 #9672E8
monochromatic
#C0A11F #DFC03D #E8D172 #F1E2A7 #F9F3DB

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##E8D172#FFFFFF#000000##000000
##E8D1721.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)
#E2CD6A
Deuteranopia (green-blind)
#E8D576
Tritanopia (blue-blind)
#F7C4BB
Achromatopsia (no color)
#D1D1D1

Design tokens & code

CSS
--color: #e8d172;
/* rgb */ color: rgb(232, 209, 114);
/* oklch */ color: oklch(86.0% 0.118 96.1);
Tailwind
colors: {
  custom: {
    50: '#f1de9d',
    500: '#e8d172',
    950: '#000000',
  },
}
SCSS
$custom: #e8d172;
$custom-light: #f1de9d;
$custom-dark: #000000;
JSON
{
  "hex": "#e8d172",
  "rgb": {
    "r": 232,
    "g": 209,
    "b": 114
  },
  "hsl": {
    "h": 48.305,
    "s": 71.951,
    "l": 67.843
  },
  "oklch": {
    "l": 0.86031,
    "c": 0.11844,
    "h": 96.1
  },
  "luminance": 0.63972
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #E8D172

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

Preview Lab → · Contrast checker → · Palette generator →

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