#D2C187#D2C187

#D2C187 is a light, moderate yellow. Relative luminance 0.536; OKLCH L 81.1% C 0.078 H 93.7°. Best body text is #000000 at 11.72:1 contrast (WCAG AA passes).

Color values

HEX#D2C187
RGBrgb(210, 193, 135)
HSLhsl(46, 45%, 68%)
HSVhsv(46, 36%, 82%)
CMYKcmyk(0%, 8.1%, 35.7%, 17.6%)
CIE-LABlab(78.22, -2.45, 31.41)
CIE-LCHlch(78.22, 31.51, 94.46°)
OKLaboklab(81.15% -0.005 0.078)
OKLCHoklch(81.15% 0.078 93.7)
XYZxyz(50.0223, 53.5924, 30.6263)
Luminance0.5359 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D2C187 #8798D2
analogous
#D29B87 #D2C187 #BED287
triadic
#D2C187 #87D2C1 #C187D2
tetradic
#D2C187 #87D29B #8798D2 #D287BE
square
#D2C187 #87D29B #8798D2 #D287BE
split-complementary
#D2C187 #87BED2 #9B87D2
monochromatic
#A28B3D #C1AA5A #D2C187 #E3D8B4 #F3EFE0

Accessibility & contrast

On white

1.79
#D2C187 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.72
#D2C187 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D2C187
11.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D2C187#FFFFFF#000000##000000
##D2C1871.001.7911.7211.72
#FFFFFF1.791.0021.0021.00
#00000011.7221.001.001.00
##00000011.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#CDBE83
Deuteranopia (green-blind)
#D1C489
Tritanopia (blue-blind)
#DDB8B2
Achromatopsia (no color)
#C1C1C1

Design tokens & code

CSS
--color: #d2c187;
/* rgb */ color: rgb(210, 193, 135);
/* oklch */ color: oklch(81.1% 0.078 93.7);
Tailwind
colors: {
  custom: {
    50: '#e1d3aa',
    500: '#d2c187',
    950: '#000000',
  },
}
SCSS
$custom: #d2c187;
$custom-light: #e1d3aa;
$custom-dark: #000000;
JSON
{
  "hex": "#d2c187",
  "rgb": {
    "r": 210,
    "g": 193,
    "b": 135
  },
  "hsl": {
    "h": 46.4,
    "s": 45.455,
    "l": 67.647
  },
  "oklch": {
    "l": 0.81146,
    "c": 0.07812,
    "h": 93.7
  },
  "luminance": 0.53591
}

Semantic roles & 50–950 ramp

primary
#D2C187
secondary
#5669A7
accent
#4DB92D
background
#FEFEFD
surface
#FCFBF7
border
#D5D4D0
text
#151410
muted
#848381

Preview Lab

Preview with #D2C187

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

Preview Lab → · Contrast checker → · Palette generator →

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