#D9D742#D9D742

#D9D742 is a very light, vivid yellow. Relative luminance 0.637; OKLCH L 85.5% C 0.163 H 108.6°. Best body text is #000000 at 13.75:1 contrast (WCAG AA passes).

Color values

HEX#D9D742
RGBrgb(217, 215, 66)
HSLhsl(59, 67%, 55%)
HSVhsv(59, 70%, 85%)
CMYKcmyk(0%, 0.9%, 69.6%, 14.9%)
CIE-LABlab(83.83, -16.46, 69.72)
CIE-LCHlch(83.83, 71.63, 103.28°)
OKLaboklab(85.5% -0.0522 0.1549)
OKLCHoklch(85.5% 0.163 108.6)
XYZxyz(53.9010, 63.7476, 14.6184)
Luminance0.6375 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D9D742 #4244D9
analogous
#D98B42 #D9D742 #90D942
triadic
#D9D742 #42D9D7 #D742D9
tetradic
#D9D742 #42D98B #4244D9 #D94290
square
#D9D742 #42D98B #4244D9 #D94290
split-complementary
#D9D742 #4290D9 #8B42D9
monochromatic
#86841B #B9B725 #D9D742 #E3E275 #EDEDA8

Accessibility & contrast

On white

1.53
#D9D742 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.75
#D9D742 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D9D742
13.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D9D742#FFFFFF#000000##000000
##D9D7421.001.5313.7513.75
#FFFFFF1.531.0021.0021.00
#00000013.7521.001.001.00
##00000013.7521.001.001.00

Color blindness preview

Protanopia (red-blind)
#E8CE29
Deuteranopia (green-blind)
#EBD34D
Tritanopia (blue-blind)
#E8C9BA
Achromatopsia (no color)
#D1D1D1

Design tokens & code

CSS
--color: #d9d742;
/* rgb */ color: rgb(217, 215, 66);
/* oklch */ color: oklch(85.5% 0.163 108.6);
Tailwind
colors: {
  custom: {
    50: '#e8e380',
    500: '#d9d742',
    950: '#000000',
  },
}
SCSS
$custom: #d9d742;
$custom-light: #e8e380;
$custom-dark: #000000;
JSON
{
  "hex": "#d9d742",
  "rgb": {
    "r": 217,
    "g": 215,
    "b": 66
  },
  "hsl": {
    "h": 59.205,
    "s": 66.52,
    "l": 55.49
  },
  "oklch": {
    "l": 0.85498,
    "c": 0.16345,
    "h": 108.6
  },
  "luminance": 0.63746
}

Semantic roles & 50–950 ramp

primary
#D9D742
secondary
#33348C
accent
#41E93E
background
#FFFEFB
surface
#FEFCF2
border
#D6D5CC
text
#17150B
muted
#85847E

Preview Lab

Preview with #D9D742

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

Preview Lab → · Contrast checker → · Palette generator →

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