#D9D940#D9D940

#D9D940 is a very light, vivid yellow. Relative luminance 0.647; OKLCH L 85.9% C 0.167 H 109.4°. Best body text is #000000 at 13.95:1 contrast (WCAG AA passes).

Color values

HEX#D9D940
RGBrgb(217, 217, 64)
HSLhsl(60, 67%, 55%)
HSVhsv(60, 71%, 85%)
CMYKcmyk(0%, 0%, 70.5%, 14.9%)
CIE-LABlab(84.35, -17.54, 70.93)
CIE-LCHlch(84.35, 73.07, 103.89°)
OKLaboklab(85.91% -0.0555 0.1571)
OKLCHoklch(85.91% 0.167 109.4)
XYZxyz(54.3555, 64.7492, 14.4841)
Luminance0.6475 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D9D940 #4040D9
analogous
#D98C40 #D9D940 #8CD940
triadic
#D9D940 #40D9D9 #D940D9
tetradic
#D9D940 #40D98C #4040D9 #D9408C
square
#D9D940 #40D98C #4040D9 #D9408C
split-complementary
#D9D940 #408CD9 #8C40D9
monochromatic
#84841A #B7B724 #D9D940 #E3E373 #EDEDA6

Accessibility & contrast

On white

1.51
#D9D940 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.95
#D9D940 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D9D940
13.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D9D940#FFFFFF#000000##000000
##D9D9401.001.5113.9513.95
#FFFFFF1.511.0021.0021.00
#00000013.9521.001.001.00
##00000013.9521.001.001.00

Color blindness preview

Protanopia (red-blind)
#EAD024
Deuteranopia (green-blind)
#ECD54B
Tritanopia (blue-blind)
#E8CBBB
Achromatopsia (no color)
#D2D2D2

Design tokens & code

CSS
--color: #d9d940;
/* rgb */ color: rgb(217, 217, 64);
/* oklch */ color: oklch(85.9% 0.167 109.4);
Tailwind
colors: {
  custom: {
    50: '#e8e47f',
    500: '#d9d940',
    950: '#000000',
  },
}
SCSS
$custom: #d9d940;
$custom-light: #e8e47f;
$custom-dark: #000000;
JSON
{
  "hex": "#d9d940",
  "rgb": {
    "r": 217,
    "g": 217,
    "b": 64
  },
  "hsl": {
    "h": 60,
    "s": 66.812,
    "l": 55.098
  },
  "oklch": {
    "l": 0.8591,
    "c": 0.1666,
    "h": 109.4
  },
  "luminance": 0.64748
}

Semantic roles & 50–950 ramp

primary
#D9D940
secondary
#32328B
accent
#3EEA3E
background
#FFFEFB
surface
#FEFCF2
border
#D6D5CC
text
#17150B
muted
#85847E

Preview Lab

Preview with #D9D940

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

Preview Lab → · Contrast checker → · Palette generator →

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