#E4C871#E4C871

#E4C871 is a very light, moderate yellow. Relative luminance 0.590; OKLCH L 83.8% C 0.112 H 92.0°. Best body text is #000000 at 12.80:1 contrast (WCAG AA passes).

Color values

HEX#E4C871
RGBrgb(228, 200, 113)
HSLhsl(45, 68%, 67%)
HSVhsv(45, 50%, 89%)
CMYKcmyk(0%, 12.3%, 50.4%, 10.6%)
CIE-LABlab(81.29, -1.11, 46.80)
CIE-LCHlch(81.29, 46.81, 91.36°)
OKLaboklab(83.84% -0.0039 0.1116)
OKLCHoklch(83.84% 0.112 92)
XYZxyz(55.6318, 58.9973, 24.0768)
Luminance0.5899 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#E4C871 #718DE4
analogous
#E48F71 #E4C871 #C7E471
triadic
#E4C871 #71E4C8 #C871E4
tetradic
#E4C871 #71E48F #718DE4 #E471C7
square
#E4C871 #71E48F #718DE4 #E471C7
split-complementary
#E4C871 #71C7E4 #8F71E4
monochromatic
#B89323 #DAB43E #E4C871 #EEDCA4 #F8F0D8

Accessibility & contrast

On white

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

On black

12.80
#E4C871 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #E4C871
12.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##E4C871#FFFFFF#000000##000000
##E4C8711.001.6412.8012.80
#FFFFFF1.641.0021.0021.00
#00000012.8021.001.001.00
##00000012.8021.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #e4c871;
/* rgb */ color: rgb(228, 200, 113);
/* oklch */ color: oklch(83.8% 0.112 92.0);
Tailwind
colors: {
  custom: {
    50: '#efd89b',
    500: '#e4c871',
    950: '#000000',
  },
}
SCSS
$custom: #e4c871;
$custom-light: #efd89b;
$custom-dark: #000000;
JSON
{
  "hex": "#e4c871",
  "rgb": {
    "r": 228,
    "g": 200,
    "b": 113
  },
  "hsl": {
    "h": 45.391,
    "s": 68.047,
    "l": 66.863
  },
  "oklch": {
    "l": 0.8384,
    "c": 0.11162,
    "h": 92
  },
  "luminance": 0.58995
}

Semantic roles & 50–950 ramp

primary
#E4C871
secondary
#415EB8
accent
#43D016
background
#FFFEFC
surface
#FEFBF5
border
#D6D4CF
text
#17140E
muted
#85837F

Preview Lab

Preview with #E4C871

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

Preview Lab → · Contrast checker → · Palette generator →

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