#D8CC5A#D8CC5A

#D8CC5A is a very light, vivid yellow. Relative luminance 0.585; OKLCH L 83.3% C 0.135 H 103.3°. Best body text is #000000 at 12.70:1 contrast (WCAG AA passes).

Color values

HEX#D8CC5A
RGBrgb(216, 204, 90)
HSLhsl(54, 62%, 60%)
HSVhsv(54, 58%, 85%)
CMYKcmyk(0%, 5.6%, 58.3%, 15.3%)
CIE-LABlab(81.03, -9.93, 57.04)
CIE-LCHlch(81.03, 57.90, 99.87°)
OKLaboklab(83.3% -0.0312 0.1317)
OKLCHoklch(83.3% 0.135 103.3)
XYZxyz(51.7590, 58.5247, 18.2408)
Luminance0.5852 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D8CC5A #5A66D8
analogous
#D88D5A #D8CC5A #A5D85A
triadic
#D8CC5A #5AD8CC #CC5AD8
tetradic
#D8CC5A #5AD88D #5A66D8 #D85AA5
square
#D8CC5A #5AD88D #5A66D8 #D85AA5
split-complementary
#D8CC5A #5AA5D8 #8D5AD8
monochromatic
#958A23 #C6B82F #D8CC5A #E4DB8B #EFEBBD

Accessibility & contrast

On white

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

On black

12.70
#D8CC5A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D8CC5A
12.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D8CC5A#FFFFFF#000000##000000
##D8CC5A1.001.6512.7012.70
#FFFFFF1.651.0021.0021.00
#00000012.7021.001.001.00
##00000012.7021.001.001.00

Color blindness preview

Protanopia (red-blind)
#DCC64E
Deuteranopia (green-blind)
#E0CC60
Tritanopia (blue-blind)
#E7BFB3
Achromatopsia (no color)
#C9C9C9

Design tokens & code

CSS
--color: #d8cc5a;
/* rgb */ color: rgb(216, 204, 90);
/* oklch */ color: oklch(83.3% 0.135 103.3);
Tailwind
colors: {
  custom: {
    50: '#e7db8d',
    500: '#d8cc5a',
    950: '#000000',
  },
}
SCSS
$custom: #d8cc5a;
$custom-light: #e7db8d;
$custom-dark: #000000;
JSON
{
  "hex": "#d8cc5a",
  "rgb": {
    "r": 216,
    "g": 204,
    "b": 90
  },
  "hsl": {
    "h": 54.286,
    "s": 61.765,
    "l": 60
  },
  "oklch": {
    "l": 0.83304,
    "c": 0.13529,
    "h": 103.3
  },
  "luminance": 0.58523
}

Semantic roles & 50–950 ramp

primary
#D8CC5A
secondary
#3D4699
accent
#52E543
background
#FFFEFC
surface
#FEFBF4
border
#D6D4CE
text
#16140C
muted
#85837F

Preview Lab

Preview with #D8CC5A

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

Preview Lab → · Contrast checker → · Palette generator →

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