#E5C871#E5C871

#E5C871 is a very light, moderate yellow. Relative luminance 0.592; OKLCH L 83.9% C 0.112 H 91.4°. Best body text is #000000 at 12.83:1 contrast (WCAG AA passes).

Color values

HEX#E5C871
RGBrgb(229, 200, 113)
HSLhsl(45, 69%, 67%)
HSVhsv(45, 51%, 90%)
CMYKcmyk(0%, 12.7%, 50.7%, 10.2%)
CIE-LABlab(81.38, -0.70, 46.93)
CIE-LCHlch(81.38, 46.94, 90.86°)
OKLaboklab(83.93% -0.0028 0.1118)
OKLCHoklch(83.93% 0.112 91.4)
XYZxyz(55.9500, 59.1614, 24.0918)
Luminance0.5916 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#E5C871 #718EE5
analogous
#E58E71 #E5C871 #C8E571
triadic
#E5C871 #71E5C8 #C871E5
tetradic
#E5C871 #71E58E #718EE5 #E571C8
square
#E5C871 #71E58E #718EE5 #E571C8
split-complementary
#E5C871 #71C8E5 #8E71E5
monochromatic
#BA9422 #DCB43D #E5C871 #EEDCA5 #F8F0D8

Accessibility & contrast

On white

1.64
#E5C871 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.83
#E5C871 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #E5C871
12.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##E5C871#FFFFFF#000000##000000
##E5C8711.001.6412.8312.83
#FFFFFF1.641.0021.0021.00
#00000012.8321.001.001.00
##00000012.8321.001.001.00

Color blindness preview

Protanopia (red-blind)
#D9C56A
Deuteranopia (green-blind)
#E0CE74
Tritanopia (blue-blind)
#F5BCB3
Achromatopsia (no color)
#CACACA

Design tokens & code

CSS
--color: #e5c871;
/* rgb */ color: rgb(229, 200, 113);
/* oklch */ color: oklch(83.9% 0.112 91.4);
Tailwind
colors: {
  custom: {
    50: '#efd89b',
    500: '#e5c871',
    950: '#000000',
  },
}
SCSS
$custom: #e5c871;
$custom-light: #efd89b;
$custom-dark: #000000;
JSON
{
  "hex": "#e5c871",
  "rgb": {
    "r": 229,
    "g": 200,
    "b": 113
  },
  "hsl": {
    "h": 45,
    "s": 69.048,
    "l": 67.059
  },
  "oklch": {
    "l": 0.83932,
    "c": 0.11186,
    "h": 91.4
  },
  "luminance": 0.59159
}

Semantic roles & 50–950 ramp

primary
#E5C871
secondary
#415FBA
accent
#44D114
background
#FFFEFC
surface
#FEFBF5
border
#D6D4CF
text
#17140E
muted
#85837F

Preview Lab

Preview with #E5C871

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

Preview Lab → · Contrast checker → · Palette generator →

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