#E4D987#E4D987

#E4D987 is a very light, moderate yellow. Relative luminance 0.679; OKLCH L 87.6% C 0.104 H 101.6°. Best body text is #000000 at 14.57:1 contrast (WCAG AA passes).

Color values

HEX#E4D987
RGBrgb(228, 217, 135)
HSLhsl(53, 63%, 71%)
HSVhsv(53, 41%, 89%)
CMYKcmyk(0%, 4.8%, 40.8%, 10.6%)
CIE-LABlab(85.94, -7.69, 41.70)
CIE-LCHlch(85.94, 42.40, 100.45°)
OKLaboklab(87.61% -0.0209 0.1015)
OKLCHoklch(87.61% 0.104 101.6)
XYZxyz(61.1821, 67.8707, 32.7944)
Luminance0.6787 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#E4D987 #8792E4
analogous
#E4AA87 #E4D987 #C0E487
triadic
#E4D987 #87E4D9 #D987E4
tetradic
#E4D987 #87E4AA #8792E4 #E487C0
square
#E4D987 #87E4AA #8792E4 #E487C0
split-complementary
#E4D987 #87C0E4 #AA87E4
monochromatic
#C4B22C #D9C955 #E4D987 #EFE9B9 #F9F7E6

Accessibility & contrast

On white

1.44
#E4D987 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

14.57
#E4D987 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #E4D987
14.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##E4D987#FFFFFF#000000##000000
##E4D9871.001.4414.5714.57
#FFFFFF1.441.0021.0021.00
#00000014.5721.001.001.00
##00000014.5721.001.001.00

Color blindness preview

Protanopia (red-blind)
#E7D481
Deuteranopia (green-blind)
#EBD98A
Tritanopia (blue-blind)
#F1CFC5
Achromatopsia (no color)
#D7D7D7

Design tokens & code

CSS
--color: #e4d987;
/* rgb */ color: rgb(228, 217, 135);
/* oklch */ color: oklch(87.6% 0.104 101.6);
Tailwind
colors: {
  custom: {
    50: '#eee4ab',
    500: '#e4d987',
    950: '#000000',
  },
}
SCSS
$custom: #e4d987;
$custom-light: #eee4ab;
$custom-dark: #000000;
JSON
{
  "hex": "#e4d987",
  "rgb": {
    "r": 228,
    "g": 217,
    "b": 135
  },
  "hsl": {
    "h": 52.903,
    "s": 63.265,
    "l": 71.176
  },
  "oklch": {
    "l": 0.87614,
    "c": 0.10367,
    "h": 101.6
  },
  "luminance": 0.67869
}

Semantic roles & 50–950 ramp

primary
#E4D987
secondary
#535FBC
accent
#2FCB1A
background
#FFFEFD
surface
#FEFCF7
border
#D6D5D0
text
#161510
muted
#858481

Preview Lab

Preview with #E4D987

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

Preview Lab → · Contrast checker → · Palette generator →

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