#D9D342#D9D342

#D9D342 is a very light, vivid yellow. Relative luminance 0.617; OKLCH L 84.7% C 0.160 H 107.0°. Best body text is #000000 at 13.35:1 contrast (WCAG AA passes).

Color values

HEX#D9D342
RGBrgb(217, 211, 66)
HSLhsl(58, 67%, 55%)
HSVhsv(58, 70%, 85%)
CMYKcmyk(0%, 2.8%, 69.6%, 14.9%)
CIE-LABlab(82.77, -14.47, 68.68)
CIE-LCHlch(82.77, 70.18, 101.90°)
OKLaboklab(84.65% -0.0467 0.1527)
OKLCHoklch(84.65% 0.16 107)
XYZxyz(52.8949, 61.7354, 14.2830)
Luminance0.6173 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D9D342 #4248D9
analogous
#D98742 #D9D342 #93D942
triadic
#D9D342 #42D9D3 #D342D9
tetradic
#D9D342 #42D987 #4248D9 #D94293
square
#D9D342 #42D987 #4248D9 #D94293
split-complementary
#D9D342 #4293D9 #8742D9
monochromatic
#86811B #B9B325 #D9D342 #E3DF75 #EDEBA8

Accessibility & contrast

On white

1.57
#D9D342 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.35
#D9D342 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D9D342
13.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D9D342#FFFFFF#000000##000000
##D9D3421.001.5713.3513.35
#FFFFFF1.571.0021.0021.00
#00000013.3521.001.001.00
##00000013.3521.001.001.00

Color blindness preview

Protanopia (red-blind)
#E5CB2A
Deuteranopia (green-blind)
#E8D14C
Tritanopia (blue-blind)
#E9C5B6
Achromatopsia (no color)
#CECECE

Design tokens & code

CSS
--color: #d9d342;
/* rgb */ color: rgb(217, 211, 66);
/* oklch */ color: oklch(84.7% 0.160 107.0);
Tailwind
colors: {
  custom: {
    50: '#e8e07f',
    500: '#d9d342',
    950: '#000000',
  },
}
SCSS
$custom: #d9d342;
$custom-light: #e8e07f;
$custom-dark: #000000;
JSON
{
  "hex": "#d9d342",
  "rgb": {
    "r": 217,
    "g": 211,
    "b": 66
  },
  "hsl": {
    "h": 57.616,
    "s": 66.52,
    "l": 55.49
  },
  "oklch": {
    "l": 0.84652,
    "c": 0.15964,
    "h": 107
  },
  "luminance": 0.61734
}

Semantic roles & 50–950 ramp

primary
#D9D342
secondary
#33378C
accent
#45E93E
background
#FFFEFB
surface
#FEFCF2
border
#D6D5CC
text
#17150B
muted
#85847E

Preview Lab

Preview with #D9D342

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

Preview Lab → · Contrast checker → · Palette generator →

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