#E2D787#E2D787

#E2D787 is a very light, moderate yellow. Relative luminance 0.665; OKLCH L 87.0% C 0.102 H 101.4°. Best body text is #000000 at 14.30:1 contrast (WCAG AA passes).

Color values

HEX#E2D787
RGBrgb(226, 215, 135)
HSLhsl(53, 61%, 71%)
HSVhsv(53, 40%, 89%)
CMYKcmyk(0%, 4.9%, 40.3%, 11.4%)
CIE-LABlab(85.26, -7.46, 40.80)
CIE-LCHlch(85.26, 41.48, 100.36°)
OKLaboklab(87.04% -0.0201 0.0995)
OKLCHoklch(87.04% 0.102 101.4)
XYZxyz(60.0388, 66.5206, 32.5941)
Luminance0.6652 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#E2D787 #8792E2
analogous
#E2A987 #E2D787 #BFE287
triadic
#E2D787 #87E2D7 #D787E2
tetradic
#E2D787 #87E2A9 #8792E2 #E287BF
square
#E2D787 #87E2A9 #8792E2 #E287BF
split-complementary
#E2D787 #87BFE2 #A987E2
monochromatic
#C0AF2E #D6C756 #E2D787 #EEE7B8 #F9F7E6

Accessibility & contrast

On white

1.47
#E2D787 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

14.30
#E2D787 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #E2D787
14.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##E2D787#FFFFFF#000000##000000
##E2D7871.001.4714.3014.30
#FFFFFF1.471.0021.0021.00
#00000014.3021.001.001.00
##00000014.3021.001.001.00

Color blindness preview

Protanopia (red-blind)
#E5D281
Deuteranopia (green-blind)
#E8D78A
Tritanopia (blue-blind)
#EFCDC3
Achromatopsia (no color)
#D5D5D5

Design tokens & code

CSS
--color: #e2d787;
/* rgb */ color: rgb(226, 215, 135);
/* oklch */ color: oklch(87.0% 0.102 101.4);
Tailwind
colors: {
  custom: {
    50: '#ece3ab',
    500: '#e2d787',
    950: '#000000',
  },
}
SCSS
$custom: #e2d787;
$custom-light: #ece3ab;
$custom-dark: #000000;
JSON
{
  "hex": "#e2d787",
  "rgb": {
    "r": 226,
    "g": 215,
    "b": 135
  },
  "hsl": {
    "h": 52.747,
    "s": 61.074,
    "l": 70.784
  },
  "oklch": {
    "l": 0.87035,
    "c": 0.10153,
    "h": 101.4
  },
  "luminance": 0.66519
}

Semantic roles & 50–950 ramp

primary
#E2D787
secondary
#5360BA
accent
#32C91D
background
#FFFEFD
surface
#FEFCF7
border
#D6D5D0
text
#161510
muted
#858481

Preview Lab

Preview with #E2D787

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

Preview Lab → · Contrast checker → · Palette generator →

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