#D8C87F#D8C87F

#D8C87F is a very light, moderate yellow. Relative luminance 0.574; OKLCH L 83.0% C 0.095 H 97.3°. Best body text is #000000 at 12.49:1 contrast (WCAG AA passes).

Color values

HEX#D8C87F
RGBrgb(216, 200, 127)
HSLhsl(49, 53%, 67%)
HSVhsv(49, 41%, 85%)
CMYKcmyk(0%, 7.4%, 41.2%, 15.3%)
CIE-LABlab(80.43, -4.60, 38.50)
CIE-LCHlch(80.43, 38.77, 96.81°)
OKLaboklab(82.97% -0.0121 0.094)
OKLCHoklch(82.97% 0.095 97.3)
XYZxyz(52.8051, 57.4415, 28.3803)
Luminance0.5744 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D8C87F #7F8FD8
analogous
#D89B7F #D8C87F #BCD87F
triadic
#D8C87F #7FD8C8 #C87FD8
tetradic
#D8C87F #7FD89B #7F8FD8 #D87FBC
square
#D8C87F #7FD89B #7F8FD8 #D87FBC
split-complementary
#D8C87F #7FBCD8 #9B7FD8
monochromatic
#A99434 #CAB450 #D8C87F #E6DCAE #F5F0DD

Accessibility & contrast

On white

1.68
#D8C87F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.49
#D8C87F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D8C87F
12.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D8C87F#FFFFFF#000000##000000
##D8C87F1.001.6812.4912.49
#FFFFFF1.681.0021.0021.00
#00000012.4921.001.001.00
##00000012.4921.001.001.00

Color blindness preview

Protanopia (red-blind)
#D6C479
Deuteranopia (green-blind)
#DACA82
Tritanopia (blue-blind)
#E5BEB6
Achromatopsia (no color)
#C8C8C8

Design tokens & code

CSS
--color: #d8c87f;
/* rgb */ color: rgb(216, 200, 127);
/* oklch */ color: oklch(83.0% 0.095 97.3);
Tailwind
colors: {
  custom: {
    50: '#e5d8a5',
    500: '#d8c87f',
    950: '#000000',
  },
}
SCSS
$custom: #d8c87f;
$custom-light: #e5d8a5;
$custom-dark: #000000;
JSON
{
  "hex": "#d8c87f",
  "rgb": {
    "r": 216,
    "g": 200,
    "b": 127
  },
  "hsl": {
    "h": 49.213,
    "s": 53.293,
    "l": 67.255
  },
  "oklch": {
    "l": 0.8297,
    "c": 0.09473,
    "h": 97.3
  },
  "luminance": 0.5744
}

Semantic roles & 50–950 ramp

primary
#D8C87F
secondary
#4F60AC
accent
#41C125
background
#FEFEFC
surface
#FCFBF6
border
#D5D4D0
text
#16140F
muted
#848380

Preview Lab

Preview with #D8C87F

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

Preview Lab → · Contrast checker → · Palette generator →

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