#D2C787#D2C787

#D2C787 is a very light, moderate yellow. Relative luminance 0.563; OKLCH L 82.4% C 0.084 H 99.6°. Best body text is #000000 at 12.26:1 contrast (WCAG AA passes).

Color values

HEX#D2C787
RGBrgb(210, 199, 135)
HSLhsl(51, 45%, 68%)
HSVhsv(51, 36%, 82%)
CMYKcmyk(0%, 5.2%, 35.7%, 17.6%)
CIE-LABlab(79.78, -5.57, 33.46)
CIE-LCHlch(79.78, 33.92, 99.44°)
OKLaboklab(82.38% -0.014 0.0827)
OKLCHoklch(82.38% 0.084 99.6)
XYZxyz(51.3757, 56.2991, 31.0775)
Luminance0.5630 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D2C787 #8792D2
analogous
#D2A187 #D2C787 #B7D287
triadic
#D2C787 #87D2C7 #C787D2
tetradic
#D2C787 #87D2A1 #8792D2 #D287B7
square
#D2C787 #87D2A1 #8792D2 #D287B7
split-complementary
#D2C787 #87B7D2 #A187D2
monochromatic
#A2933D #C1B25A #D2C787 #E3DCB4 #F3F1E0

Accessibility & contrast

On white

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

On black

12.26
#D2C787 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D2C787
12.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D2C787#FFFFFF#000000##000000
##D2C7871.001.7112.2612.26
#FFFFFF1.711.0021.0021.00
#00000012.2621.001.001.00
##00000012.2621.001.001.00

Color blindness preview

Protanopia (red-blind)
#D3C382
Deuteranopia (green-blind)
#D6C889
Tritanopia (blue-blind)
#DDBEB7
Achromatopsia (no color)
#C6C6C6

Design tokens & code

CSS
--color: #d2c787;
/* rgb */ color: rgb(210, 199, 135);
/* oklch */ color: oklch(82.4% 0.084 99.6);
Tailwind
colors: {
  custom: {
    50: '#e1d7aa',
    500: '#d2c787',
    950: '#000000',
  },
}
SCSS
$custom: #d2c787;
$custom-light: #e1d7aa;
$custom-dark: #000000;
JSON
{
  "hex": "#d2c787",
  "rgb": {
    "r": 210,
    "g": 199,
    "b": 135
  },
  "hsl": {
    "h": 51.2,
    "s": 45.455,
    "l": 67.647
  },
  "oklch": {
    "l": 0.82379,
    "c": 0.08392,
    "h": 99.6
  },
  "luminance": 0.56298
}

Semantic roles & 50–950 ramp

primary
#D2C787
secondary
#5662A7
accent
#41B92D
background
#FEFEFD
surface
#FCFBF7
border
#D5D4D0
text
#151410
muted
#848381

Preview Lab

Preview with #D2C787

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

Preview Lab → · Contrast checker → · Palette generator →

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