#E4E787#E4E787

#E4E787 is a very light, moderate yellow. Relative luminance 0.754; OKLCH L 90.5% C 0.119 H 110.1°. Best body text is #000000 at 16.08:1 contrast (WCAG AA passes).

Color values

HEX#E4E787
RGBrgb(228, 231, 135)
HSLhsl(62, 67%, 72%)
HSVhsv(62, 42%, 91%)
CMYKcmyk(1.3%, 0%, 41.6%, 9.4%)
CIE-LABlab(89.58, -14.69, 46.28)
CIE-LCHlch(89.58, 48.56, 107.61°)
OKLaboklab(90.5% -0.041 0.1119)
OKLCHoklch(90.5% 0.119 110.1)
XYZxyz(64.9449, 75.3963, 34.0487)
Luminance0.7540 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#E4E787 #8A87E7
analogous
#E7BA87 #E4E787 #B4E787
triadic
#E4E787 #87E4E7 #E787E4
tetradic
#E4E787 #87E7BA #8A87E7 #E787B4
square
#E4E787 #87E7BA #8A87E7 #E787B4
split-complementary
#E4E787 #87B4E7 #BA87E7
monochromatic
#C6CB29 #D9DD54 #E4E787 #EFF1BA #F9FAE5

Accessibility & contrast

On white

1.31
#E4E787 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

16.08
#E4E787 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #E4E787
16.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##E4E787#FFFFFF#000000##000000
##E4E7871.001.3116.0816.08
#FFFFFF1.311.0021.0021.00
#00000016.0821.001.001.00
##00000016.0821.001.001.00

Color blindness preview

Protanopia (red-blind)
#F5DF7F
Deuteranopia (green-blind)
#F6E38B
Tritanopia (blue-blind)
#F0DCD0
Achromatopsia (no color)
#E1E1E1

Design tokens & code

CSS
--color: #e4e787;
/* rgb */ color: rgb(228, 231, 135);
/* oklch */ color: oklch(90.5% 0.119 110.1);
Tailwind
colors: {
  custom: {
    50: '#eeeeab',
    500: '#e4e787',
    950: '#000000',
  },
}
SCSS
$custom: #e4e787;
$custom-light: #eeeeab;
$custom-dark: #000000;
JSON
{
  "hex": "#e4e787",
  "rgb": {
    "r": 228,
    "g": 231,
    "b": 135
  },
  "hsl": {
    "h": 61.875,
    "s": 66.667,
    "l": 71.765
  },
  "oklch": {
    "l": 0.90502,
    "c": 0.11916,
    "h": 110.1
  },
  "luminance": 0.75395
}

Semantic roles & 50–950 ramp

primary
#E4E787
secondary
#5652C0
accent
#17CF1D
background
#FFFFFD
surface
#FEFEF7
border
#D6D6D0
text
#171610
muted
#858581

Preview Lab

Preview with #E4E787

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

Preview Lab → · Contrast checker → · Palette generator →

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