#D1C787#D1C787

#D1C787 is a very light, moderate yellow. Relative luminance 0.562; OKLCH L 82.3% C 0.084 H 100.4°. Best body text is #000000 at 12.23:1 contrast (WCAG AA passes).

Color values

HEX#D1C787
RGBrgb(209, 199, 135)
HSLhsl(52, 45%, 67%)
HSVhsv(52, 35%, 82%)
CMYKcmyk(0%, 4.8%, 35.4%, 18%)
CIE-LABlab(79.70, -5.96, 33.34)
CIE-LCHlch(79.70, 33.87, 100.13°)
OKLaboklab(82.29% -0.0151 0.0825)
OKLCHoklch(82.29% 0.084 100.4)
XYZxyz(51.0918, 56.1527, 31.0641)
Luminance0.5615 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D1C787 #8791D1
analogous
#D1A287 #D1C787 #B6D187
triadic
#D1C787 #87D1C7 #C787D1
tetradic
#D1C787 #87D1A2 #8791D1 #D187B6
square
#D1C787 #87D1A2 #8791D1 #D187B6
split-complementary
#D1C787 #87B6D1 #A287D1
monochromatic
#A0933D #C0B25B #D1C787 #E2DCB3 #F3F0DF

Accessibility & contrast

On white

1.72
#D1C787 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.23
#D1C787 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D1C787
12.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D1C787#FFFFFF#000000##000000
##D1C7871.001.7212.2312.23
#FFFFFF1.721.0021.0021.00
#00000012.2321.001.001.00
##00000012.2321.001.001.00

Color blindness preview

Protanopia (red-blind)
#D3C382
Deuteranopia (green-blind)
#D6C789
Tritanopia (blue-blind)
#DCBEB7
Achromatopsia (no color)
#C5C5C5

Design tokens & code

CSS
--color: #d1c787;
/* rgb */ color: rgb(209, 199, 135);
/* oklch */ color: oklch(82.3% 0.084 100.4);
Tailwind
colors: {
  custom: {
    50: '#e0d7aa',
    500: '#d1c787',
    950: '#000000',
  },
}
SCSS
$custom: #d1c787;
$custom-light: #e0d7aa;
$custom-dark: #000000;
JSON
{
  "hex": "#d1c787",
  "rgb": {
    "r": 209,
    "g": 199,
    "b": 135
  },
  "hsl": {
    "h": 51.892,
    "s": 44.578,
    "l": 67.451
  },
  "oklch": {
    "l": 0.82293,
    "c": 0.08384,
    "h": 100.4
  },
  "luminance": 0.56151
}

Semantic roles & 50–950 ramp

primary
#D1C787
secondary
#5761A5
accent
#40B82E
background
#FEFEFD
surface
#FCFBF7
border
#D5D4D0
text
#151410
muted
#848381

Preview Lab

Preview with #D1C787

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

Preview Lab → · Contrast checker → · Palette generator →

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