#D2CD87#D2CD87

#D2CD87 is a very light, moderate yellow. Relative luminance 0.591; OKLCH L 83.6% C 0.090 H 104.7°. Best body text is #000000 at 12.82:1 contrast (WCAG AA passes).

Color values

HEX#D2CD87
RGBrgb(210, 205, 135)
HSLhsl(56, 45%, 68%)
HSVhsv(56, 36%, 82%)
CMYKcmyk(0%, 2.4%, 35.7%, 17.6%)
CIE-LABlab(81.35, -8.65, 35.51)
CIE-LCHlch(81.35, 36.55, 103.69°)
OKLaboklab(83.62% -0.0229 0.0875)
OKLCHoklch(83.62% 0.09 104.7)
XYZxyz(52.7835, 59.1147, 31.5467)
Luminance0.5911 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D2CD87 #878CD2
analogous
#D2A787 #D2CD87 #B1D287
triadic
#D2CD87 #87D2CD #CD87D2
tetradic
#D2CD87 #87D2A7 #878CD2 #D287B1
square
#D2CD87 #87D2A7 #878CD2 #D287B1
split-complementary
#D2CD87 #87B1D2 #A787D2
monochromatic
#A29B3D #C1BA5A #D2CD87 #E3E0B4 #F3F2E0

Accessibility & contrast

On white

1.64
#D2CD87 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.82
#D2CD87 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D2CD87
12.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D2CD87#FFFFFF#000000##000000
##D2CD871.001.6412.8212.82
#FFFFFF1.641.0021.0021.00
#00000012.8221.001.001.00
##00000012.8221.001.001.00

Color blindness preview

Protanopia (red-blind)
#D9C882
Deuteranopia (green-blind)
#DBCC8A
Tritanopia (blue-blind)
#DCC4BB
Achromatopsia (no color)
#CACACA

Design tokens & code

CSS
--color: #d2cd87;
/* rgb */ color: rgb(210, 205, 135);
/* oklch */ color: oklch(83.6% 0.090 104.7);
Tailwind
colors: {
  custom: {
    50: '#e1dcaa',
    500: '#d2cd87',
    950: '#000000',
  },
}
SCSS
$custom: #d2cd87;
$custom-light: #e1dcaa;
$custom-dark: #000000;
JSON
{
  "hex": "#d2cd87",
  "rgb": {
    "r": 210,
    "g": 205,
    "b": 135
  },
  "hsl": {
    "h": 56,
    "s": 45.455,
    "l": 67.647
  },
  "oklch": {
    "l": 0.83624,
    "c": 0.09045,
    "h": 104.7
  },
  "luminance": 0.59114
}

Semantic roles & 50–950 ramp

primary
#D2CD87
secondary
#565CA7
accent
#36B92D
background
#FEFEFD
surface
#FCFBF7
border
#D5D4D0
text
#151510
muted
#848481

Preview Lab

Preview with #D2CD87

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

Preview Lab → · Contrast checker → · Palette generator →

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