#D9C54B#D9C54B

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

Color values

HEX#D9C54B
RGBrgb(217, 197, 75)
HSLhsl(52, 65%, 57%)
HSVhsv(52, 65%, 85%)
CMYKcmyk(0%, 9.2%, 65.4%, 14.9%)
CIE-LABlab(79.15, -6.91, 61.50)
CIE-LCHlch(79.15, 61.88, 96.41°)
OKLaboklab(81.79% -0.0243 0.139)
OKLCHoklch(81.79% 0.141 99.9)
XYZxyz(49.8537, 55.1944, 14.6828)
Luminance0.5519 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D9C54B #4B5FD9
analogous
#D97E4B #D9C54B #A6D94B
triadic
#D9C54B #4BD9C5 #C54BD9
tetradic
#D9C54B #4BD97E #4B5FD9 #D94BA6
square
#D9C54B #4BD97E #4B5FD9 #D94BA6
split-complementary
#D9C54B #4BA6D9 #7E4BD9
monochromatic
#8C7C1E #BFA928 #D9C54B #E4D57E #EEE6B0

Accessibility & contrast

On white

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

On black

12.04
#D9C54B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D9C54B
12.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D9C54B#FFFFFF#000000##000000
##D9C54B1.001.7412.0412.04
#FFFFFF1.741.0021.0021.00
#00000012.0421.001.001.00
##00000012.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#D7C03C
Deuteranopia (green-blind)
#DCC752
Tritanopia (blue-blind)
#E9B7AC
Achromatopsia (no color)
#C4C4C4

Design tokens & code

CSS
--color: #d9c54b;
/* rgb */ color: rgb(217, 197, 75);
/* oklch */ color: oklch(81.8% 0.141 99.9);
Tailwind
colors: {
  custom: {
    50: '#e8d683',
    500: '#d9c54b',
    950: '#000000',
  },
}
SCSS
$custom: #d9c54b;
$custom-light: #e8d683;
$custom-dark: #000000;
JSON
{
  "hex": "#d9c54b",
  "rgb": {
    "r": 217,
    "g": 197,
    "b": 75
  },
  "hsl": {
    "h": 51.549,
    "s": 65.138,
    "l": 57.255
  },
  "oklch": {
    "l": 0.81794,
    "c": 0.1411,
    "h": 99.9
  },
  "luminance": 0.55192
}

Semantic roles & 50–950 ramp

primary
#D9C54B
secondary
#364392
accent
#57E840
background
#FFFEFB
surface
#FEFBF2
border
#D6D4CC
text
#16140B
muted
#85837E

Preview Lab

Preview with #D9C54B

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

Preview Lab → · Contrast checker → · Palette generator →

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