#D8CC7D#D8CC7D

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

Color values

HEX#D8CC7D
RGBrgb(216, 204, 125)
HSLhsl(52, 54%, 67%)
HSVhsv(52, 42%, 85%)
CMYKcmyk(0%, 5.6%, 42.1%, 15.3%)
CIE-LABlab(81.44, -6.86, 40.79)
CIE-LCHlch(81.44, 41.37, 99.55°)
OKLaboklab(83.76% -0.0188 0.0991)
OKLCHoklch(83.76% 0.101 100.7)
XYZxyz(53.6146, 59.2669, 28.0135)
Luminance0.5927 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D8CC7D #7D89D8
analogous
#D89F7D #D8CC7D #B7D87D
triadic
#D8CC7D #7DD8CC #CC7DD8
tetradic
#D8CC7D #7DD89F #7D89D8 #D87DB7
square
#D8CC7D #7DD89F #7D89D8 #D87DB7
split-complementary
#D8CC7D #7DB7D8 #9F7DD8
monochromatic
#A89932 #CABA4E #D8CC7D #E6DEAC #F4F1DB

Accessibility & contrast

On white

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

On black

12.85
#D8CC7D on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D8CC7D
12.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D8CC7D#FFFFFF#000000##000000
##D8CC7D1.001.6312.8512.85
#FFFFFF1.631.0021.0021.00
#00000012.8521.001.001.00
##00000012.8521.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #d8cc7d;
/* rgb */ color: rgb(216, 204, 125);
/* oklch */ color: oklch(83.8% 0.101 100.7);
Tailwind
colors: {
  custom: {
    50: '#e5dba4',
    500: '#d8cc7d',
    950: '#000000',
  },
}
SCSS
$custom: #d8cc7d;
$custom-light: #e5dba4;
$custom-dark: #000000;
JSON
{
  "hex": "#d8cc7d",
  "rgb": {
    "r": 216,
    "g": 204,
    "b": 125
  },
  "hsl": {
    "h": 52.088,
    "s": 53.846,
    "l": 66.863
  },
  "oklch": {
    "l": 0.83761,
    "c": 0.10084,
    "h": 100.7
  },
  "luminance": 0.59265
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #D8CC7D

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

Preview Lab → · Contrast checker → · Palette generator →

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