#D8CC7E#D8CC7E

#D8CC7E is a very light, moderate yellow. Relative luminance 0.593; OKLCH L 83.8% C 0.100 H 100.6°. Best body text is #000000 at 12.86:1 contrast (WCAG AA passes).

Color values

HEX#D8CC7E
RGBrgb(216, 204, 126)
HSLhsl(52, 54%, 67%)
HSVhsv(52, 42%, 85%)
CMYKcmyk(0%, 5.6%, 41.7%, 15.3%)
CIE-LABlab(81.45, -6.76, 40.31)
CIE-LCHlch(81.45, 40.87, 99.52°)
OKLaboklab(83.78% -0.0184 0.098)
OKLCHoklch(83.78% 0.1 100.6)
XYZxyz(53.6788, 59.2926, 28.3516)
Luminance0.5929 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D8CC7E #7E8AD8
analogous
#D89F7E #D8CC7E #B7D87E
triadic
#D8CC7E #7ED8CC #CC7ED8
tetradic
#D8CC7E #7ED89F #7E8AD8 #D87EB7
square
#D8CC7E #7ED89F #7E8AD8 #D87EB7
split-complementary
#D8CC7E #7EB7D8 #9F7ED8
monochromatic
#A99933 #CAB94F #D8CC7E #E6DFAD #F4F1DC

Accessibility & contrast

On white

1.63
#D8CC7E on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.86
#D8CC7E on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D8CC7E
12.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D8CC7E#FFFFFF#000000##000000
##D8CC7E1.001.6312.8612.86
#FFFFFF1.631.0021.0021.00
#00000012.8621.001.001.00
##00000012.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#D9C778
Deuteranopia (green-blind)
#DDCD81
Tritanopia (blue-blind)
#E4C2B9
Achromatopsia (no color)
#CACACA

Design tokens & code

CSS
--color: #d8cc7e;
/* rgb */ color: rgb(216, 204, 126);
/* oklch */ color: oklch(83.8% 0.100 100.6);
Tailwind
colors: {
  custom: {
    50: '#e5dba4',
    500: '#d8cc7e',
    950: '#000000',
  },
}
SCSS
$custom: #d8cc7e;
$custom-light: #e5dba4;
$custom-dark: #000000;
JSON
{
  "hex": "#d8cc7e",
  "rgb": {
    "r": 216,
    "g": 204,
    "b": 126
  },
  "hsl": {
    "h": 52,
    "s": 53.571,
    "l": 67.059
  },
  "oklch": {
    "l": 0.83776,
    "c": 0.09974,
    "h": 100.6
  },
  "luminance": 0.59291
}

Semantic roles & 50–950 ramp

primary
#D8CC7E
secondary
#4E5BAC
accent
#39C124
background
#FEFEFC
surface
#FCFBF6
border
#D5D4D0
text
#16150F
muted
#848480

Preview Lab

Preview with #D8CC7E

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

Preview Lab → · Contrast checker → · Palette generator →

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