#D9C340#D9C340

#D9C340 is a light, vivid yellow. Relative luminance 0.542; OKLCH L 81.3% C 0.147 H 99.5°. Best body text is #000000 at 11.83:1 contrast (WCAG AA passes).

Color values

HEX#D9C340
RGBrgb(217, 195, 64)
HSLhsl(51, 67%, 55%)
HSVhsv(51, 71%, 85%)
CMYKcmyk(0%, 10.1%, 70.5%, 14.9%)
CIE-LABlab(78.55, -6.47, 65.25)
CIE-LCHlch(78.55, 65.57, 95.67°)
OKLaboklab(81.29% -0.0243 0.1451)
OKLCHoklch(81.29% 0.147 99.5)
XYZxyz(49.0581, 54.1544, 12.7183)
Luminance0.5415 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D9C340 #4056D9
analogous
#D97740 #D9C340 #A2D940
triadic
#D9C340 #40D9C3 #C340D9
tetradic
#D9C340 #40D977 #4056D9 #D940A2
square
#D9C340 #40D977 #4056D9 #D940A2
split-complementary
#D9C340 #40A2D9 #7740D9
monochromatic
#84751A #B7A224 #D9C340 #E3D373 #EDE3A6

Accessibility & contrast

On white

1.78
#D9C340 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.83
#D9C340 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D9C340
11.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D9C340#FFFFFF#000000##000000
##D9C3401.001.7811.8311.83
#FFFFFF1.781.0021.0021.00
#00000011.8321.001.001.00
##00000011.8321.001.001.00

Color blindness preview

Protanopia (red-blind)
#D6BE2C
Deuteranopia (green-blind)
#DCC648
Tritanopia (blue-blind)
#EAB5A9
Achromatopsia (no color)
#C2C2C2

Design tokens & code

CSS
--color: #d9c340;
/* rgb */ color: rgb(217, 195, 64);
/* oklch */ color: oklch(81.3% 0.147 99.5);
Tailwind
colors: {
  custom: {
    50: '#e9d47d',
    500: '#d9c340',
    950: '#000000',
  },
}
SCSS
$custom: #d9c340;
$custom-light: #e9d47d;
$custom-dark: #000000;
JSON
{
  "hex": "#d9c340",
  "rgb": {
    "r": 217,
    "g": 195,
    "b": 64
  },
  "hsl": {
    "h": 51.373,
    "s": 66.812,
    "l": 55.098
  },
  "oklch": {
    "l": 0.81291,
    "c": 0.14712,
    "h": 99.5
  },
  "luminance": 0.54152
}

Semantic roles & 50–950 ramp

primary
#D9C340
secondary
#323F8B
accent
#57EA3E
background
#FFFEFB
surface
#FEFBF2
border
#D6D4CC
text
#17140A
muted
#85837D

Preview Lab

Preview with #D9C340

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

Preview Lab → · Contrast checker → · Palette generator →

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