#D9CC4A#D9CC4A

#D9CC4A is a very light, vivid yellow. Relative luminance 0.584; OKLCH L 83.2% C 0.148 H 103.6°. Best body text is #000000 at 12.69:1 contrast (WCAG AA passes).

Color values

HEX#D9CC4A
RGBrgb(217, 204, 74)
HSLhsl(55, 65%, 57%)
HSVhsv(55, 66%, 85%)
CMYKcmyk(0%, 6%, 65.9%, 14.9%)
CIE-LABlab(80.98, -10.53, 63.81)
CIE-LCHlch(80.98, 64.67, 99.37°)
OKLaboklab(83.24% -0.0347 0.1437)
OKLCHoklch(83.24% 0.148 103.6)
XYZxyz(51.4462, 58.4339, 15.0462)
Luminance0.5843 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D9CC4A #4A57D9
analogous
#D9844A #D9CC4A #9FD94A
triadic
#D9CC4A #4AD9CC #CC4AD9
tetradic
#D9CC4A #4AD984 #4A57D9 #D94A9F
square
#D9CC4A #4AD984 #4A57D9 #D94A9F
split-complementary
#D9CC4A #4A9FD9 #844AD9
monochromatic
#8B811D #BEB028 #D9CC4A #E4DA7D #EEE9AF

Accessibility & contrast

On white

1.66
#D9CC4A on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.69
#D9CC4A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D9CC4A
12.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D9CC4A#FFFFFF#000000##000000
##D9CC4A1.001.6612.6912.69
#FFFFFF1.661.0021.0021.00
#00000012.6921.001.001.00
##00000012.6921.001.001.00

Color blindness preview

Protanopia (red-blind)
#DEC539
Deuteranopia (green-blind)
#E2CC52
Tritanopia (blue-blind)
#E9BEB1
Achromatopsia (no color)
#C9C9C9

Design tokens & code

CSS
--color: #d9cc4a;
/* rgb */ color: rgb(217, 204, 74);
/* oklch */ color: oklch(83.2% 0.148 103.6);
Tailwind
colors: {
  custom: {
    50: '#e8db83',
    500: '#d9cc4a',
    950: '#000000',
  },
}
SCSS
$custom: #d9cc4a;
$custom-light: #e8db83;
$custom-dark: #000000;
JSON
{
  "hex": "#d9cc4a",
  "rgb": {
    "r": 217,
    "g": 204,
    "b": 74
  },
  "hsl": {
    "h": 54.545,
    "s": 65.297,
    "l": 57.059
  },
  "oklch": {
    "l": 0.83242,
    "c": 0.14785,
    "h": 103.6
  },
  "luminance": 0.58432
}

Semantic roles & 50–950 ramp

primary
#D9CC4A
secondary
#363E91
accent
#4FE840
background
#FFFEFB
surface
#FEFBF2
border
#D6D4CC
text
#16140B
muted
#85837E

Preview Lab

Preview with #D9CC4A

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

Preview Lab → · Contrast checker → · Palette generator →

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