#D9C342#D9C342

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

Color values

HEX#D9C342
RGBrgb(217, 195, 66)
HSLhsl(51, 67%, 55%)
HSVhsv(51, 70%, 85%)
CMYKcmyk(0%, 10.1%, 69.6%, 14.9%)
CIE-LABlab(78.57, -6.37, 64.50)
CIE-LCHlch(78.57, 64.82, 95.64°)
OKLaboklab(81.31% -0.0238 0.1439)
OKLCHoklch(81.31% 0.146 99.4)
XYZxyz(49.1160, 54.1776, 13.0234)
Luminance0.5417 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D9C342 #4258D9
analogous
#D97742 #D9C342 #A4D942
triadic
#D9C342 #42D9C3 #C342D9
tetradic
#D9C342 #42D977 #4258D9 #D942A4
square
#D9C342 #42D977 #4258D9 #D942A4
split-complementary
#D9C342 #42A4D9 #7742D9
monochromatic
#86761B #B9A325 #D9C342 #E3D375 #EDE3A8

Accessibility & contrast

On white

1.77
#D9C342 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.84
#D9C342 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D9C342
11.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D9C342#FFFFFF#000000##000000
##D9C3421.001.7711.8411.84
#FFFFFF1.771.0021.0021.00
#00000011.8421.001.001.00
##00000011.8421.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #d9c342;
/* rgb */ color: rgb(217, 195, 66);
/* oklch */ color: oklch(81.3% 0.146 99.4);
Tailwind
colors: {
  custom: {
    50: '#e8d47e',
    500: '#d9c342',
    950: '#000000',
  },
}
SCSS
$custom: #d9c342;
$custom-light: #e8d47e;
$custom-dark: #000000;
JSON
{
  "hex": "#d9c342",
  "rgb": {
    "r": 217,
    "g": 195,
    "b": 66
  },
  "hsl": {
    "h": 51.258,
    "s": 66.52,
    "l": 55.49
  },
  "oklch": {
    "l": 0.81306,
    "c": 0.14581,
    "h": 99.4
  },
  "luminance": 0.54175
}

Semantic roles & 50–950 ramp

primary
#D9C342
secondary
#33408C
accent
#57E93E
background
#FFFEFB
surface
#FEFBF2
border
#D6D4CC
text
#17140A
muted
#85837D

Preview Lab

Preview with #D9C342

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

Preview Lab → · Contrast checker → · Palette generator →

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