#D9C040#D9C040

#D9C040 is a light, vivid yellow. Relative luminance 0.528; OKLCH L 80.7% C 0.145 H 97.9°. Best body text is #000000 at 11.56:1 contrast (WCAG AA passes).

Color values

HEX#D9C040
RGBrgb(217, 192, 64)
HSLhsl(50, 67%, 55%)
HSVhsv(50, 71%, 85%)
CMYKcmyk(0%, 11.5%, 70.5%, 14.9%)
CIE-LABlab(77.77, -4.93, 64.48)
CIE-LCHlch(77.77, 64.67, 94.37°)
OKLaboklab(80.67% -0.0199 0.1435)
OKLCHoklch(80.67% 0.145 97.9)
XYZxyz(48.3927, 52.8236, 12.4965)
Luminance0.5282 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D9C040 #4059D9
analogous
#D97340 #D9C040 #A6D940
triadic
#D9C040 #40D9C0 #C040D9
tetradic
#D9C040 #40D973 #4059D9 #D940A6
square
#D9C040 #40D973 #4059D9 #D940A6
split-complementary
#D9C040 #40A6D9 #7340D9
monochromatic
#84731A #B79F24 #D9C040 #E3D173 #EDE2A6

Accessibility & contrast

On white

1.82
#D9C040 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.56
#D9C040 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D9C040
11.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D9C040#FFFFFF#000000##000000
##D9C0401.001.8211.5611.56
#FFFFFF1.821.0021.0021.00
#00000011.5621.001.001.00
##00000011.5621.001.001.00

Color blindness preview

Protanopia (red-blind)
#D3BB2D
Deuteranopia (green-blind)
#D9C448
Tritanopia (blue-blind)
#EAB2A6
Achromatopsia (no color)
#C0C0C0

Design tokens & code

CSS
--color: #d9c040;
/* rgb */ color: rgb(217, 192, 64);
/* oklch */ color: oklch(80.7% 0.145 97.9);
Tailwind
colors: {
  custom: {
    50: '#e9d27c',
    500: '#d9c040',
    950: '#000000',
  },
}
SCSS
$custom: #d9c040;
$custom-light: #e9d27c;
$custom-dark: #000000;
JSON
{
  "hex": "#d9c040",
  "rgb": {
    "r": 217,
    "g": 192,
    "b": 64
  },
  "hsl": {
    "h": 50.196,
    "s": 66.812,
    "l": 55.098
  },
  "oklch": {
    "l": 0.80672,
    "c": 0.14483,
    "h": 97.9
  },
  "luminance": 0.52821
}

Semantic roles & 50–950 ramp

primary
#D9C040
secondary
#32418B
accent
#5AEA3E
background
#FFFEFB
surface
#FEFBF2
border
#D6D4CC
text
#17140A
muted
#85837D

Preview Lab

Preview with #D9C040

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

Preview Lab → · Contrast checker → · Palette generator →

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