#D9C54E#D9C54E

#D9C54E is a light, vivid yellow. Relative luminance 0.552; OKLCH L 81.8% C 0.139 H 99.7°. Best body text is #000000 at 12.05:1 contrast (WCAG AA passes).

Color values

HEX#D9C54E
RGBrgb(217, 197, 78)
HSLhsl(51, 65%, 58%)
HSVhsv(51, 64%, 85%)
CMYKcmyk(0%, 9.2%, 64.1%, 14.9%)
CIE-LABlab(79.18, -6.73, 60.27)
CIE-LCHlch(79.18, 60.64, 96.37°)
OKLaboklab(81.82% -0.0235 0.1368)
OKLCHoklch(81.82% 0.139 99.7)
XYZxyz(49.9588, 55.2365, 15.2364)
Luminance0.5523 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D9C54E #4E62D9
analogous
#D97F4E #D9C54E #A7D94E
triadic
#D9C54E #4ED9C5 #C54ED9
tetradic
#D9C54E #4ED97F #4E62D9 #D94EA7
square
#D9C54E #4ED97F #4E62D9 #D94EA7
split-complementary
#D9C54E #4EA7D9 #7F4ED9
monochromatic
#8E7E1F #C0AB29 #D9C54E #E4D680 #EFE6B3

Accessibility & contrast

On white

1.74
#D9C54E on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.05
#D9C54E on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D9C54E
12.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D9C54E#FFFFFF#000000##000000
##D9C54E1.001.7412.0512.05
#FFFFFF1.741.0021.0021.00
#00000012.0521.001.001.00
##00000012.0521.001.001.00

Color blindness preview

Protanopia (red-blind)
#D7C040
Deuteranopia (green-blind)
#DCC754
Tritanopia (blue-blind)
#E9B8AC
Achromatopsia (no color)
#C4C4C4

Design tokens & code

CSS
--color: #d9c54e;
/* rgb */ color: rgb(217, 197, 78);
/* oklch */ color: oklch(81.8% 0.139 99.7);
Tailwind
colors: {
  custom: {
    50: '#e8d685',
    500: '#d9c54e',
    950: '#000000',
  },
}
SCSS
$custom: #d9c54e;
$custom-light: #e8d685;
$custom-dark: #000000;
JSON
{
  "hex": "#d9c54e",
  "rgb": {
    "r": 217,
    "g": 197,
    "b": 78
  },
  "hsl": {
    "h": 51.367,
    "s": 64.651,
    "l": 57.843
  },
  "oklch": {
    "l": 0.81821,
    "c": 0.13884,
    "h": 99.7
  },
  "luminance": 0.55234
}

Semantic roles & 50–950 ramp

primary
#D9C54E
secondary
#384594
accent
#58E840
background
#FFFEFB
surface
#FEFBF2
border
#D6D4CC
text
#16140B
muted
#85837E

Preview Lab

Preview with #D9C54E

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

Preview Lab → · Contrast checker → · Palette generator →

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