#D9C142#D9C142

#D9C142 is a light, vivid yellow. Relative luminance 0.533; OKLCH L 80.9% C 0.144 H 98.3°. Best body text is #000000 at 11.66:1 contrast (WCAG AA passes).

Color values

HEX#D9C142
RGBrgb(217, 193, 66)
HSLhsl(50, 67%, 55%)
HSVhsv(50, 70%, 85%)
CMYKcmyk(0%, 11.1%, 69.6%, 14.9%)
CIE-LABlab(78.04, -5.34, 63.98)
CIE-LCHlch(78.04, 64.20, 94.78°)
OKLaboklab(80.89% -0.0208 0.1427)
OKLCHoklch(80.89% 0.144 98.3)
XYZxyz(48.6709, 53.2874, 12.8750)
Luminance0.5329 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D9C142 #425AD9
analogous
#D97642 #D9C142 #A5D942
triadic
#D9C142 #42D9C1 #C142D9
tetradic
#D9C142 #42D976 #425AD9 #D942A5
square
#D9C142 #42D976 #425AD9 #D942A5
split-complementary
#D9C142 #42A5D9 #7642D9
monochromatic
#86751B #B9A125 #D9C142 #E3D275 #EDE2A8

Accessibility & contrast

On white

1.80
#D9C142 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.66
#D9C142 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D9C142
11.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D9C142#FFFFFF#000000##000000
##D9C1421.001.8011.6611.66
#FFFFFF1.801.0021.0021.00
#00000011.6621.001.001.00
##00000011.6621.001.001.00

Color blindness preview

Protanopia (red-blind)
#D4BC2F
Deuteranopia (green-blind)
#DAC549
Tritanopia (blue-blind)
#EAB3A7
Achromatopsia (no color)
#C1C1C1

Design tokens & code

CSS
--color: #d9c142;
/* rgb */ color: rgb(217, 193, 66);
/* oklch */ color: oklch(80.9% 0.144 98.3);
Tailwind
colors: {
  custom: {
    50: '#e9d37e',
    500: '#d9c142',
    950: '#000000',
  },
}
SCSS
$custom: #d9c142;
$custom-light: #e9d37e;
$custom-dark: #000000;
JSON
{
  "hex": "#d9c142",
  "rgb": {
    "r": 217,
    "g": 193,
    "b": 66
  },
  "hsl": {
    "h": 50.464,
    "s": 66.52,
    "l": 55.49
  },
  "oklch": {
    "l": 0.80893,
    "c": 0.14426,
    "h": 98.3
  },
  "luminance": 0.53285
}

Semantic roles & 50–950 ramp

primary
#D9C142
secondary
#33418C
accent
#5AE93E
background
#FFFEFB
surface
#FEFBF2
border
#D6D4CC
text
#17140A
muted
#85837D

Preview Lab

Preview with #D9C142

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

Preview Lab → · Contrast checker → · Palette generator →

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