#D9D042#D9D042

#D9D042 is a very light, vivid yellow. Relative luminance 0.603; OKLCH L 84.0% C 0.157 H 105.7°. Best body text is #000000 at 13.05:1 contrast (WCAG AA passes).

Color values

HEX#D9D042
RGBrgb(217, 208, 66)
HSLhsl(56, 67%, 55%)
HSVhsv(56, 70%, 85%)
CMYKcmyk(0%, 4.1%, 69.6%, 14.9%)
CIE-LABlab(81.98, -12.97, 67.89)
CIE-LCHlch(81.98, 69.12, 100.82°)
OKLaboklab(84.02% -0.0424 0.151)
OKLCHoklch(84.02% 0.157 105.7)
XYZxyz(52.1566, 60.2587, 14.0369)
Luminance0.6026 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D9D042 #424BD9
analogous
#D98442 #D9D042 #96D942
triadic
#D9D042 #42D9D0 #D042D9
tetradic
#D9D042 #42D984 #424BD9 #D94296
square
#D9D042 #42D984 #424BD9 #D94296
split-complementary
#D9D042 #4296D9 #8442D9
monochromatic
#867F1B #B9B025 #D9D042 #E3DD75 #EDE9A8

Accessibility & contrast

On white

1.61
#D9D042 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.05
#D9D042 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D9D042
13.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D9D042#FFFFFF#000000##000000
##D9D0421.001.6113.0513.05
#FFFFFF1.611.0021.0021.00
#00000013.0521.001.001.00
##00000013.0521.001.001.00

Color blindness preview

Protanopia (red-blind)
#E2C82B
Deuteranopia (green-blind)
#E5CF4C
Tritanopia (blue-blind)
#E9C2B4
Achromatopsia (no color)
#CCCCCC

Design tokens & code

CSS
--color: #d9d042;
/* rgb */ color: rgb(217, 208, 66);
/* oklch */ color: oklch(84.0% 0.157 105.7);
Tailwind
colors: {
  custom: {
    50: '#e8de7f',
    500: '#d9d042',
    950: '#000000',
  },
}
SCSS
$custom: #d9d042;
$custom-light: #e8de7f;
$custom-dark: #000000;
JSON
{
  "hex": "#d9d042",
  "rgb": {
    "r": 217,
    "g": 208,
    "b": 66
  },
  "hsl": {
    "h": 56.424,
    "s": 66.52,
    "l": 55.49
  },
  "oklch": {
    "l": 0.84019,
    "c": 0.15687,
    "h": 105.7
  },
  "luminance": 0.60257
}

Semantic roles & 50–950 ramp

primary
#D9D042
secondary
#33388C
accent
#49E93E
background
#FFFEFB
surface
#FEFCF2
border
#D6D5CC
text
#17150B
muted
#85847E

Preview Lab

Preview with #D9D042

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

Preview Lab → · Contrast checker → · Palette generator →

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