#D9C540#D9C540

#D9C540 is a light, vivid yellow. Relative luminance 0.551; OKLCH L 81.7% C 0.149 H 100.5°. Best body text is #000000 at 12.01:1 contrast (WCAG AA passes).

Color values

HEX#D9C540
RGBrgb(217, 197, 64)
HSLhsl(52, 67%, 55%)
HSVhsv(52, 71%, 85%)
CMYKcmyk(0%, 9.2%, 70.5%, 14.9%)
CIE-LABlab(79.07, -7.50, 65.77)
CIE-LCHlch(79.07, 66.20, 96.50°)
OKLaboklab(81.71% -0.0272 0.1462)
OKLCHoklch(81.71% 0.149 100.5)
XYZxyz(49.5092, 55.0566, 12.8687)
Luminance0.5505 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D9C540 #4054D9
analogous
#D97940 #D9C540 #A0D940
triadic
#D9C540 #40D9C5 #C540D9
tetradic
#D9C540 #40D979 #4054D9 #D940A0
square
#D9C540 #40D979 #4054D9 #D940A0
split-complementary
#D9C540 #40A0D9 #7940D9
monochromatic
#84761A #B7A424 #D9C540 #E3D573 #EDE4A6

Accessibility & contrast

On white

1.75
#D9C540 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.01
#D9C540 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D9C540
12.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D9C540#FFFFFF#000000##000000
##D9C5401.001.7512.0112.01
#FFFFFF1.751.0021.0021.00
#00000012.0121.001.001.00
##00000012.0121.001.001.00

Color blindness preview

Protanopia (red-blind)
#D7BF2B
Deuteranopia (green-blind)
#DDC748
Tritanopia (blue-blind)
#EAB7AB
Achromatopsia (no color)
#C4C4C4

Design tokens & code

CSS
--color: #d9c540;
/* rgb */ color: rgb(217, 197, 64);
/* oklch */ color: oklch(81.7% 0.149 100.5);
Tailwind
colors: {
  custom: {
    50: '#e9d67d',
    500: '#d9c540',
    950: '#000000',
  },
}
SCSS
$custom: #d9c540;
$custom-light: #e9d67d;
$custom-dark: #000000;
JSON
{
  "hex": "#d9c540",
  "rgb": {
    "r": 217,
    "g": 197,
    "b": 64
  },
  "hsl": {
    "h": 52.157,
    "s": 66.812,
    "l": 55.098
  },
  "oklch": {
    "l": 0.81705,
    "c": 0.1487,
    "h": 100.5
  },
  "luminance": 0.55054
}

Semantic roles & 50–950 ramp

primary
#D9C540
secondary
#323E8B
accent
#55EA3E
background
#FFFEFB
surface
#FEFBF2
border
#D6D4CC
text
#17140A
muted
#85837D

Preview Lab

Preview with #D9C540

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

Preview Lab → · Contrast checker → · Palette generator →

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