#E4D171#E4D171

#E4D171 is a very light, moderate yellow. Relative luminance 0.633; OKLCH L 85.7% C 0.119 H 98.4°. Best body text is #000000 at 13.66:1 contrast (WCAG AA passes).

Color values

HEX#E4D171
RGBrgb(228, 209, 113)
HSLhsl(50, 68%, 67%)
HSVhsv(50, 50%, 89%)
CMYKcmyk(0%, 8.3%, 50.4%, 10.6%)
CIE-LABlab(83.59, -5.73, 49.59)
CIE-LCHlch(83.59, 49.92, 96.59°)
OKLaboklab(85.66% -0.0173 0.1177)
OKLCHoklch(85.66% 0.119 98.4)
XYZxyz(57.7778, 63.2894, 24.7922)
Luminance0.6329 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#E4D171 #7184E4
analogous
#E49871 #E4D171 #BEE471
triadic
#E4D171 #71E4D1 #D171E4
tetradic
#E4D171 #71E498 #7184E4 #E471BE
square
#E4D171 #71E498 #7184E4 #E471BE
split-complementary
#E4D171 #71BEE4 #9871E4
monochromatic
#B89F23 #DAC03E #E4D171 #EEE2A4 #F8F2D8

Accessibility & contrast

On white

1.54
#E4D171 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.66
#E4D171 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #E4D171
13.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##E4D171#FFFFFF#000000##000000
##E4D1711.001.5413.6613.66
#FFFFFF1.541.0021.0021.00
#00000013.6621.001.001.00
##00000013.6621.001.001.00

Color blindness preview

Protanopia (red-blind)
#E1CC69
Deuteranopia (green-blind)
#E7D375
Tritanopia (blue-blind)
#F3C5BB
Achromatopsia (no color)
#D0D0D0

Design tokens & code

CSS
--color: #e4d171;
/* rgb */ color: rgb(228, 209, 113);
/* oklch */ color: oklch(85.7% 0.119 98.4);
Tailwind
colors: {
  custom: {
    50: '#efde9c',
    500: '#e4d171',
    950: '#000000',
  },
}
SCSS
$custom: #e4d171;
$custom-light: #efde9c;
$custom-dark: #000000;
JSON
{
  "hex": "#e4d171",
  "rgb": {
    "r": 228,
    "g": 209,
    "b": 113
  },
  "hsl": {
    "h": 50.087,
    "s": 68.047,
    "l": 66.863
  },
  "oklch": {
    "l": 0.85662,
    "c": 0.11896,
    "h": 98.4
  },
  "luminance": 0.63287
}

Semantic roles & 50–950 ramp

primary
#E4D171
secondary
#4155B8
accent
#34D016
background
#FFFEFC
surface
#FEFCF5
border
#D6D5CF
text
#17150E
muted
#85847F

Preview Lab

Preview with #E4D171

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

Preview Lab → · Contrast checker → · Palette generator →

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