#E7D87F#E7D87F

#E7D87F is a very light, moderate yellow. Relative luminance 0.676; OKLCH L 87.5% C 0.111 H 99.9°. Best body text is #000000 at 14.53:1 contrast (WCAG AA passes).

Color values

HEX#E7D87F
RGBrgb(231, 216, 127)
HSLhsl(51, 68%, 70%)
HSVhsv(51, 45%, 91%)
CMYKcmyk(0%, 6.5%, 45%, 9.4%)
CIE-LABlab(85.82, -6.80, 45.56)
CIE-LCHlch(85.82, 46.07, 98.49°)
OKLaboklab(87.55% -0.0192 0.1098)
OKLCHoklch(87.55% 0.111 99.9)
XYZxyz(61.3432, 67.6350, 29.8981)
Luminance0.6763 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#E7D87F #7F8EE7
analogous
#E7A47F #E7D87F #C2E77F
triadic
#E7D87F #7FE7D8 #D87FE7
tetradic
#E7D87F #7FE7A4 #7F8EE7 #E77FC2
square
#E7D87F #7FE7A4 #7F8EE7 #E77FC2
split-complementary
#E7D87F #7FC2E7 #A47FE7
monochromatic
#C6AF25 #DDC84B #E7D87F #F1E8B3 #FAF7E5

Accessibility & contrast

On white

1.45
#E7D87F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

14.53
#E7D87F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #E7D87F
14.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##E7D87F#FFFFFF#000000##000000
##E7D87F1.001.4514.5314.53
#FFFFFF1.451.0021.0021.00
#00000014.5321.001.001.00
##00000014.5321.001.001.00

Color blindness preview

Protanopia (red-blind)
#E7D378
Deuteranopia (green-blind)
#ECD983
Tritanopia (blue-blind)
#F5CDC3
Achromatopsia (no color)
#D7D7D7

Design tokens & code

CSS
--color: #e7d87f;
/* rgb */ color: rgb(231, 216, 127);
/* oklch */ color: oklch(87.5% 0.111 99.9);
Tailwind
colors: {
  custom: {
    50: '#f0e3a5',
    500: '#e7d87f',
    950: '#000000',
  },
}
SCSS
$custom: #e7d87f;
$custom-light: #f0e3a5;
$custom-dark: #000000;
JSON
{
  "hex": "#e7d87f",
  "rgb": {
    "r": 231,
    "g": 216,
    "b": 127
  },
  "hsl": {
    "h": 51.346,
    "s": 68.421,
    "l": 70.196
  },
  "oklch": {
    "l": 0.87545,
    "c": 0.11143,
    "h": 99.9
  },
  "luminance": 0.67633
}

Semantic roles & 50–950 ramp

primary
#E7D87F
secondary
#4B5CBF
accent
#30D015
background
#FFFEFC
surface
#FEFCF6
border
#D6D5D0
text
#17150F
muted
#858480

Preview Lab

Preview with #E7D87F

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

Preview Lab → · Contrast checker → · Palette generator →

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