#D2C87F#D2C87F

#D2C87F is a very light, moderate yellow. Relative luminance 0.565; OKLCH L 82.4% C 0.094 H 101.5°. Best body text is #000000 at 12.31:1 contrast (WCAG AA passes).

Color values

HEX#D2C87F
RGBrgb(210, 200, 127)
HSLhsl(53, 48%, 66%)
HSVhsv(53, 40%, 82%)
CMYKcmyk(0%, 4.8%, 39.5%, 17.6%)
CIE-LABlab(79.92, -6.99, 37.75)
CIE-LCHlch(79.92, 38.39, 100.49°)
OKLaboklab(82.45% -0.0187 0.0923)
OKLCHoklch(82.45% 0.094 101.5)
XYZxyz(51.0643, 56.5439, 28.2987)
Luminance0.5654 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D2C87F #7F89D2
analogous
#D29E7F #D2C87F #B2D27F
triadic
#D2C87F #7FD2C8 #C87FD2
tetradic
#D2C87F #7FD29E #7F89D2 #D27FB2
square
#D2C87F #7FD29E #7F89D2 #D27FB2
split-complementary
#D2C87F #7FB2D2 #9E7FD2
monochromatic
#9F9238 #C2B552 #D2C87F #E2DBAC #F2EFDA

Accessibility & contrast

On white

1.71
#D2C87F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.31
#D2C87F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D2C87F
12.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D2C87F#FFFFFF#000000##000000
##D2C87F1.001.7112.3112.31
#FFFFFF1.711.0021.0021.00
#00000012.3121.001.001.00
##00000012.3121.001.001.00

Color blindness preview

Protanopia (red-blind)
#D5C47A
Deuteranopia (green-blind)
#D8C882
Tritanopia (blue-blind)
#DEBFB6
Achromatopsia (no color)
#C6C6C6

Design tokens & code

CSS
--color: #d2c87f;
/* rgb */ color: rgb(210, 200, 127);
/* oklch */ color: oklch(82.4% 0.094 101.5);
Tailwind
colors: {
  custom: {
    50: '#e1d8a5',
    500: '#d2c87f',
    950: '#000000',
  },
}
SCSS
$custom: #d2c87f;
$custom-light: #e1d8a5;
$custom-dark: #000000;
JSON
{
  "hex": "#d2c87f",
  "rgb": {
    "r": 210,
    "g": 200,
    "b": 127
  },
  "hsl": {
    "h": 52.771,
    "s": 47.977,
    "l": 66.078
  },
  "oklch": {
    "l": 0.82449,
    "c": 0.09418,
    "h": 101.5
  },
  "luminance": 0.56542
}

Semantic roles & 50–950 ramp

primary
#D2C87F
secondary
#515BA4
accent
#3CBB2A
background
#FEFEFC
surface
#FCFBF6
border
#D5D4D0
text
#15140F
muted
#848380

Preview Lab

Preview with #D2C87F

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

Preview Lab → · Contrast checker → · Palette generator →

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