#D9C642#D9C642

#D9C642 is a light, vivid yellow. Relative luminance 0.555; OKLCH L 81.9% C 0.148 H 100.9°. Best body text is #000000 at 12.11:1 contrast (WCAG AA passes).

Color values

HEX#D9C642
RGBrgb(217, 198, 66)
HSLhsl(52, 67%, 55%)
HSVhsv(52, 70%, 85%)
CMYKcmyk(0%, 8.8%, 69.6%, 14.9%)
CIE-LABlab(79.35, -7.91, 65.29)
CIE-LCHlch(79.35, 65.76, 96.91°)
OKLaboklab(81.93% -0.0281 0.1455)
OKLCHoklch(81.93% 0.148 100.9)
XYZxyz(49.7949, 55.5355, 13.2497)
Luminance0.5553 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D9C642 #4255D9
analogous
#D97A42 #D9C642 #A1D942
triadic
#D9C642 #42D9C6 #C642D9
tetradic
#D9C642 #42D97A #4255D9 #D942A1
square
#D9C642 #42D97A #4255D9 #D942A1
split-complementary
#D9C642 #42A1D9 #7A42D9
monochromatic
#86781B #B9A625 #D9C642 #E3D575 #EDE5A8

Accessibility & contrast

On white

1.73
#D9C642 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.11
#D9C642 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D9C642
12.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D9C642#FFFFFF#000000##000000
##D9C6421.001.7312.1112.11
#FFFFFF1.731.0021.0021.00
#00000012.1121.001.001.00
##00000012.1121.001.001.00

Color blindness preview

Protanopia (red-blind)
#D8C02E
Deuteranopia (green-blind)
#DEC84A
Tritanopia (blue-blind)
#E9B8AC
Achromatopsia (no color)
#C5C5C5

Design tokens & code

CSS
--color: #d9c642;
/* rgb */ color: rgb(217, 198, 66);
/* oklch */ color: oklch(81.9% 0.148 100.9);
Tailwind
colors: {
  custom: {
    50: '#e8d67e',
    500: '#d9c642',
    950: '#000000',
  },
}
SCSS
$custom: #d9c642;
$custom-light: #e8d67e;
$custom-dark: #000000;
JSON
{
  "hex": "#d9c642",
  "rgb": {
    "r": 217,
    "g": 198,
    "b": 66
  },
  "hsl": {
    "h": 52.45,
    "s": 66.52,
    "l": 55.49
  },
  "oklch": {
    "l": 0.81928,
    "c": 0.14821,
    "h": 100.9
  },
  "luminance": 0.55533
}

Semantic roles & 50–950 ramp

primary
#D9C642
secondary
#333E8C
accent
#54E93E
background
#FFFEFB
surface
#FEFBF2
border
#D6D4CC
text
#17140A
muted
#85837D

Preview Lab

Preview with #D9C642

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

Preview Lab → · Contrast checker → · Palette generator →

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