#D8CC8A#D8CC8A

#D8CC8A is a very light, moderate yellow. Relative luminance 0.596; OKLCH L 84.0% C 0.086 H 99.1°. Best body text is #000000 at 12.92:1 contrast (WCAG AA passes).

Color values

HEX#D8CC8A
RGBrgb(216, 204, 138)
HSLhsl(51, 50%, 69%)
HSVhsv(51, 36%, 85%)
CMYKcmyk(0%, 5.6%, 36.1%, 15.3%)
CIE-LABlab(81.63, -5.44, 34.43)
CIE-LCHlch(81.63, 34.85, 98.97°)
OKLaboklab(83.98% -0.0137 0.0851)
OKLCHoklch(83.98% 0.086 99.1)
XYZxyz(54.5001, 59.6211, 32.6769)
Luminance0.5962 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D8CC8A #8A96D8
analogous
#D8A58A #D8CC8A #BDD88A
triadic
#D8CC8A #8AD8CC #CC8AD8
tetradic
#D8CC8A #8AD8A5 #8A96D8 #D88ABD
square
#D8CC8A #8AD8A5 #8A96D8 #D88ABD
split-complementary
#D8CC8A #8ABDD8 #A58AD8
monochromatic
#AE9C3A #C9B85C #D8CC8A #E7E0B8 #F7F4E6

Accessibility & contrast

On white

1.62
#D8CC8A on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.92
#D8CC8A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D8CC8A
12.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D8CC8A#FFFFFF#000000##000000
##D8CC8A1.001.6212.9212.92
#FFFFFF1.621.0021.0021.00
#00000012.9221.001.001.00
##00000012.9221.001.001.00

Color blindness preview

Protanopia (red-blind)
#D8C885
Deuteranopia (green-blind)
#DCCD8C
Tritanopia (blue-blind)
#E3C3BB
Achromatopsia (no color)
#CBCBCB

Design tokens & code

CSS
--color: #d8cc8a;
/* rgb */ color: rgb(216, 204, 138);
/* oklch */ color: oklch(84.0% 0.086 99.1);
Tailwind
colors: {
  custom: {
    50: '#e5dbad',
    500: '#d8cc8a',
    950: '#000000',
  },
}
SCSS
$custom: #d8cc8a;
$custom-light: #e5dbad;
$custom-dark: #000000;
JSON
{
  "hex": "#d8cc8a",
  "rgb": {
    "r": 216,
    "g": 204,
    "b": 138
  },
  "hsl": {
    "h": 50.769,
    "s": 50,
    "l": 69.412
  },
  "oklch": {
    "l": 0.83977,
    "c": 0.08616,
    "h": 99.1
  },
  "luminance": 0.5962
}

Semantic roles & 50–950 ramp

primary
#D8CC8A
secondary
#5865AE
accent
#3FBD28
background
#FEFEFD
surface
#FCFBF7
border
#D5D4D0
text
#161510
muted
#848481

Preview Lab

Preview with #D8CC8A

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

Preview Lab → · Contrast checker → · Palette generator →

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