#D9CC5A#D9CC5A

#D9CC5A is a very light, vivid yellow. Relative luminance 0.587; OKLCH L 83.4% C 0.135 H 102.8°. Best body text is #000000 at 12.74:1 contrast (WCAG AA passes).

Color values

HEX#D9CC5A
RGBrgb(217, 204, 90)
HSLhsl(54, 63%, 60%)
HSVhsv(54, 59%, 85%)
CMYKcmyk(0%, 6%, 58.5%, 14.9%)
CIE-LABlab(81.11, -9.51, 57.16)
CIE-LCHlch(81.11, 57.94, 99.45°)
OKLaboklab(83.39% -0.03 0.1319)
OKLCHoklch(83.39% 0.135 102.8)
XYZxyz(52.0554, 58.6775, 18.2547)
Luminance0.5868 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D9CC5A #5A67D9
analogous
#D98C5A #D9CC5A #A7D95A
triadic
#D9CC5A #5AD9CC #CC5AD9
tetradic
#D9CC5A #5AD98C #5A67D9 #D95AA7
square
#D9CC5A #5AD98C #5A67D9 #D95AA7
split-complementary
#D9CC5A #5AA7D9 #8C5AD9
monochromatic
#968A23 #C8B82E #D9CC5A #E4DB8C #F0EBBD

Accessibility & contrast

On white

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

On black

12.74
#D9CC5A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D9CC5A
12.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D9CC5A#FFFFFF#000000##000000
##D9CC5A1.001.6512.7412.74
#FFFFFF1.651.0021.0021.00
#00000012.7421.001.001.00
##00000012.7421.001.001.00

Color blindness preview

Protanopia (red-blind)
#DDC64E
Deuteranopia (green-blind)
#E1CC60
Tritanopia (blue-blind)
#E8BFB3
Achromatopsia (no color)
#C9C9C9

Design tokens & code

CSS
--color: #d9cc5a;
/* rgb */ color: rgb(217, 204, 90);
/* oklch */ color: oklch(83.4% 0.135 102.8);
Tailwind
colors: {
  custom: {
    50: '#e7db8d',
    500: '#d9cc5a',
    950: '#000000',
  },
}
SCSS
$custom: #d9cc5a;
$custom-light: #e7db8d;
$custom-dark: #000000;
JSON
{
  "hex": "#d9cc5a",
  "rgb": {
    "r": 217,
    "g": 204,
    "b": 90
  },
  "hsl": {
    "h": 53.858,
    "s": 62.562,
    "l": 60.196
  },
  "oklch": {
    "l": 0.83392,
    "c": 0.13526,
    "h": 102.8
  },
  "luminance": 0.58676
}

Semantic roles & 50–950 ramp

primary
#D9CC5A
secondary
#3C469B
accent
#2DCA1B
background
#FFFEFC
surface
#FEFBF4
border
#D6D4CE
text
#16140C
muted
#85837F

Preview Lab

Preview with #D9CC5A

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

Preview Lab → · Contrast checker → · Palette generator →

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