#D8CC5F#D8CC5F

#D8CC5F is a very light, vivid yellow. Relative luminance 0.586; OKLCH L 83.4% C 0.131 H 103.1°. Best body text is #000000 at 12.72:1 contrast (WCAG AA passes).

Color values

HEX#D8CC5F
RGBrgb(216, 204, 95)
HSLhsl(54, 61%, 61%)
HSVhsv(54, 56%, 85%)
CMYKcmyk(0%, 5.6%, 56%, 15.3%)
CIE-LABlab(81.08, -9.56, 54.84)
CIE-LCHlch(81.08, 55.66, 99.89°)
OKLaboklab(83.36% -0.0296 0.1275)
OKLCHoklch(83.36% 0.131 103.1)
XYZxyz(51.9790, 58.6127, 19.3996)
Luminance0.5861 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D8CC5F #5F6BD8
analogous
#D88F5F #D8CC5F #A7D85F
triadic
#D8CC5F #5FD8CC #CC5FD8
tetradic
#D8CC5F #5FD88F #5F6BD8 #D85FA7
square
#D8CC5F #5FD88F #5F6BD8 #D85FA7
split-complementary
#D8CC5F #5FA7D8 #8F5FD8
monochromatic
#988C25 #C9BA31 #D8CC5F #E4DC90 #F0EBC1

Accessibility & contrast

On white

1.65
#D8CC5F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.72
#D8CC5F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D8CC5F
12.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D8CC5F#FFFFFF#000000##000000
##D8CC5F1.001.6512.7212.72
#FFFFFF1.651.0021.0021.00
#00000012.7221.001.001.00
##00000012.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#DCC654
Deuteranopia (green-blind)
#E0CC64
Tritanopia (blue-blind)
#E7C0B4
Achromatopsia (no color)
#C9C9C9

Design tokens & code

CSS
--color: #d8cc5f;
/* rgb */ color: rgb(216, 204, 95);
/* oklch */ color: oklch(83.4% 0.131 103.1);
Tailwind
colors: {
  custom: {
    50: '#e7db90',
    500: '#d8cc5f',
    950: '#000000',
  },
}
SCSS
$custom: #d8cc5f;
$custom-light: #e7db90;
$custom-dark: #000000;
JSON
{
  "hex": "#d8cc5f",
  "rgb": {
    "r": 216,
    "g": 204,
    "b": 95
  },
  "hsl": {
    "h": 54.05,
    "s": 60.804,
    "l": 60.98
  },
  "oklch": {
    "l": 0.83359,
    "c": 0.1309,
    "h": 103.1
  },
  "luminance": 0.58611
}

Semantic roles & 50–950 ramp

primary
#D8CC5F
secondary
#3F489C
accent
#2EC81D
background
#FFFEFC
surface
#FEFBF4
border
#D6D4CE
text
#16140D
muted
#85837F

Preview Lab

Preview with #D8CC5F

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

Preview Lab → · Contrast checker → · Palette generator →

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