#D4C87F#D4C87F

#D4C87F is a very light, moderate yellow. Relative luminance 0.568; OKLCH L 82.6% C 0.094 H 100.1°. Best body text is #000000 at 12.37:1 contrast (WCAG AA passes).

Color values

HEX#D4C87F
RGBrgb(212, 200, 127)
HSLhsl(52, 50%, 66%)
HSVhsv(52, 40%, 83%)
CMYKcmyk(0%, 5.7%, 40.1%, 16.9%)
CIE-LABlab(80.09, -6.19, 38.00)
CIE-LCHlch(80.09, 38.50, 99.25°)
OKLaboklab(82.62% -0.0165 0.0929)
OKLCHoklch(82.62% 0.094 100.1)
XYZxyz(51.6374, 56.8394, 28.3256)
Luminance0.5684 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D4C87F #7F8BD4
analogous
#D49E7F #D4C87F #B6D47F
triadic
#D4C87F #7FD4C8 #C87FD4
tetradic
#D4C87F #7FD49E #7F8BD4 #D47FB6
square
#D4C87F #7FD49E #7F8BD4 #D47FB6
split-complementary
#D4C87F #7FB6D4 #9E7FD4
monochromatic
#A29336 #C5B451 #D4C87F #E3DCAD #F3EFDB

Accessibility & contrast

On white

1.70
#D4C87F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.37
#D4C87F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D4C87F
12.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D4C87F#FFFFFF#000000##000000
##D4C87F1.001.7012.3712.37
#FFFFFF1.701.0021.0021.00
#00000012.3721.001.001.00
##00000012.3721.001.001.00

Color blindness preview

Protanopia (red-blind)
#D5C47A
Deuteranopia (green-blind)
#D9C982
Tritanopia (blue-blind)
#E0BEB6
Achromatopsia (no color)
#C7C7C7

Design tokens & code

CSS
--color: #d4c87f;
/* rgb */ color: rgb(212, 200, 127);
/* oklch */ color: oklch(82.6% 0.094 100.1);
Tailwind
colors: {
  custom: {
    50: '#e2d8a5',
    500: '#d4c87f',
    950: '#000000',
  },
}
SCSS
$custom: #d4c87f;
$custom-light: #e2d8a5;
$custom-dark: #000000;
JSON
{
  "hex": "#d4c87f",
  "rgb": {
    "r": 212,
    "g": 200,
    "b": 127
  },
  "hsl": {
    "h": 51.529,
    "s": 49.708,
    "l": 66.471
  },
  "oklch": {
    "l": 0.82621,
    "c": 0.0943,
    "h": 100.1
  },
  "luminance": 0.56838
}

Semantic roles & 50–950 ramp

primary
#D4C87F
secondary
#515DA7
accent
#3DBD28
background
#FEFEFC
surface
#FCFBF6
border
#D5D4D0
text
#16140F
muted
#848380

Preview Lab

Preview with #D4C87F

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

Preview Lab → · Contrast checker → · Palette generator →

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