#D9CC4F#D9CC4F

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

Color values

HEX#D9CC4F
RGBrgb(217, 204, 79)
HSLhsl(54, 64%, 58%)
HSVhsv(54, 64%, 85%)
CMYKcmyk(0%, 6%, 63.6%, 14.9%)
CIE-LABlab(81.02, -10.24, 61.80)
CIE-LCHlch(81.02, 62.64, 99.41°)
OKLaboklab(83.29% -0.0333 0.1402)
OKLCHoklch(83.29% 0.144 103.4)
XYZxyz(51.6214, 58.5039, 15.9688)
Luminance0.5850 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D9CC4F #4F5CD9
analogous
#D9874F #D9CC4F #A1D94F
triadic
#D9CC4F #4FD9CC #CC4FD9
tetradic
#D9CC4F #4FD987 #4F5CD9 #D94FA1
square
#D9CC4F #4FD987 #4F5CD9 #D94FA1
split-complementary
#D9CC4F #4FA1D9 #874FD9
monochromatic
#8F841F #C1B32A #D9CC4F #E4DB81 #EFE9B4

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##D9CC4F#FFFFFF#000000##000000
##D9CC4F1.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)
#DDC640
Deuteranopia (green-blind)
#E2CC56
Tritanopia (blue-blind)
#E8BFB2
Achromatopsia (no color)
#C9C9C9

Design tokens & code

CSS
--color: #d9cc4f;
/* rgb */ color: rgb(217, 204, 79);
/* oklch */ color: oklch(83.3% 0.144 103.4);
Tailwind
colors: {
  custom: {
    50: '#e8db86',
    500: '#d9cc4f',
    950: '#000000',
  },
}
SCSS
$custom: #d9cc4f;
$custom-light: #e8db86;
$custom-dark: #000000;
JSON
{
  "hex": "#d9cc4f",
  "rgb": {
    "r": 217,
    "g": 204,
    "b": 79
  },
  "hsl": {
    "h": 54.348,
    "s": 64.486,
    "l": 58.039
  },
  "oklch": {
    "l": 0.83285,
    "c": 0.14415,
    "h": 103.4
  },
  "luminance": 0.58502
}

Semantic roles & 50–950 ramp

primary
#D9CC4F
secondary
#384194
accent
#50E740
background
#FFFEFC
surface
#FEFBF3
border
#D6D4CD
text
#16140C
muted
#85837F

Preview Lab

Preview with #D9CC4F

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

Preview Lab → · Contrast checker → · Palette generator →

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