#D7C87F#D7C87F

#D7C87F is a very light, moderate yellow. Relative luminance 0.573; OKLCH L 82.9% C 0.095 H 98.0°. Best body text is #000000 at 12.46:1 contrast (WCAG AA passes).

Color values

HEX#D7C87F
RGBrgb(215, 200, 127)
HSLhsl(50, 52%, 67%)
HSVhsv(50, 41%, 84%)
CMYKcmyk(0%, 7%, 40.9%, 15.7%)
CIE-LABlab(80.34, -5.00, 38.37)
CIE-LCHlch(80.34, 38.70, 97.42°)
OKLaboklab(82.88% -0.0132 0.0937)
OKLCHoklch(82.88% 0.095 98)
XYZxyz(52.5105, 57.2896, 28.3665)
Luminance0.5729 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D7C87F #7F8ED7
analogous
#D79C7F #D7C87F #BAD77F
triadic
#D7C87F #7FD7C8 #C87FD7
tetradic
#D7C87F #7FD79C #7F8ED7 #D77FBA
square
#D7C87F #7FD79C #7F8ED7 #D77FBA
split-complementary
#D7C87F #7FBAD7 #9C7FD7
monochromatic
#A79434 #C8B450 #D7C87F #E6DCAE #F4F0DC

Accessibility & contrast

On white

1.69
#D7C87F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.46
#D7C87F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D7C87F
12.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D7C87F#FFFFFF#000000##000000
##D7C87F1.001.6912.4612.46
#FFFFFF1.691.0021.0021.00
#00000012.4621.001.001.00
##00000012.4621.001.001.00

Color blindness preview

Protanopia (red-blind)
#D5C479
Deuteranopia (green-blind)
#DACA82
Tritanopia (blue-blind)
#E3BEB6
Achromatopsia (no color)
#C7C7C7

Design tokens & code

CSS
--color: #d7c87f;
/* rgb */ color: rgb(215, 200, 127);
/* oklch */ color: oklch(82.9% 0.095 98.0);
Tailwind
colors: {
  custom: {
    50: '#e5d8a5',
    500: '#d7c87f',
    950: '#000000',
  },
}
SCSS
$custom: #d7c87f;
$custom-light: #e5d8a5;
$custom-dark: #000000;
JSON
{
  "hex": "#d7c87f",
  "rgb": {
    "r": 215,
    "g": 200,
    "b": 127
  },
  "hsl": {
    "h": 49.773,
    "s": 52.381,
    "l": 67.059
  },
  "oklch": {
    "l": 0.82882,
    "c": 0.0946,
    "h": 98
  },
  "luminance": 0.57288
}

Semantic roles & 50–950 ramp

primary
#D7C87F
secondary
#4F5FAB
accent
#40C026
background
#FEFEFC
surface
#FCFBF6
border
#D5D4D0
text
#16140F
muted
#848380

Preview Lab

Preview with #D7C87F

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

Preview Lab → · Contrast checker → · Palette generator →

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