#D9C042#D9C042

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

Color values

HEX#D9C042
RGBrgb(217, 192, 66)
HSLhsl(50, 67%, 55%)
HSVhsv(50, 70%, 85%)
CMYKcmyk(0%, 11.5%, 69.6%, 14.9%)
CIE-LABlab(77.78, -4.83, 63.72)
CIE-LCHlch(77.78, 63.90, 94.33°)
OKLaboklab(80.69% -0.0194 0.1422)
OKLCHoklch(80.69% 0.144 97.8)
XYZxyz(48.4506, 52.8467, 12.8016)
Luminance0.5284 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D9C042 #425BD9
analogous
#D97442 #D9C042 #A7D942
triadic
#D9C042 #42D9C0 #C042D9
tetradic
#D9C042 #42D974 #425BD9 #D942A7
square
#D9C042 #42D974 #425BD9 #D942A7
split-complementary
#D9C042 #42A7D9 #7442D9
monochromatic
#86741B #B9A025 #D9C042 #E3D175 #EDE2A8

Accessibility & contrast

On white

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

On black

11.57
#D9C042 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D9C042
11.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D9C042#FFFFFF#000000##000000
##D9C0421.001.8211.5711.57
#FFFFFF1.821.0021.0021.00
#00000011.5721.001.001.00
##00000011.5721.001.001.00

Color blindness preview

Protanopia (red-blind)
#D3BB30
Deuteranopia (green-blind)
#D9C449
Tritanopia (blue-blind)
#EAB2A7
Achromatopsia (no color)
#C0C0C0

Design tokens & code

CSS
--color: #d9c042;
/* rgb */ color: rgb(217, 192, 66);
/* oklch */ color: oklch(80.7% 0.144 97.8);
Tailwind
colors: {
  custom: {
    50: '#e9d27e',
    500: '#d9c042',
    950: '#000000',
  },
}
SCSS
$custom: #d9c042;
$custom-light: #e9d27e;
$custom-dark: #000000;
JSON
{
  "hex": "#d9c042",
  "rgb": {
    "r": 217,
    "g": 192,
    "b": 66
  },
  "hsl": {
    "h": 50.066,
    "s": 66.52,
    "l": 55.49
  },
  "oklch": {
    "l": 0.80687,
    "c": 0.14351,
    "h": 97.8
  },
  "luminance": 0.52844
}

Semantic roles & 50–950 ramp

primary
#D9C042
secondary
#33428C
accent
#5BE93E
background
#FFFEFB
surface
#FEFBF2
border
#D6D4CC
text
#17140A
muted
#85837D

Preview Lab

Preview with #D9C042

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

Preview Lab → · Contrast checker → · Palette generator →

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