#D9D540#D9D540

#D9D540 is a very light, vivid yellow. Relative luminance 0.627; OKLCH L 85.1% C 0.163 H 107.9°. Best body text is #000000 at 13.54:1 contrast (WCAG AA passes).

Color values

HEX#D9D540
RGBrgb(217, 213, 64)
HSLhsl(58, 67%, 55%)
HSVhsv(58, 71%, 85%)
CMYKcmyk(0%, 1.8%, 70.5%, 14.9%)
CIE-LABlab(83.29, -15.56, 69.90)
CIE-LCHlch(83.29, 71.61, 102.55°)
OKLaboklab(85.06% -0.0499 0.1549)
OKLCHoklch(85.06% 0.163 107.9)
XYZxyz(53.3369, 62.7121, 14.1446)
Luminance0.6271 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D9D540 #4044D9
analogous
#D98840 #D9D540 #91D940
triadic
#D9D540 #40D9D5 #D540D9
tetradic
#D9D540 #40D988 #4044D9 #D94091
square
#D9D540 #40D988 #4044D9 #D94091
split-complementary
#D9D540 #4091D9 #8840D9
monochromatic
#84821A #B7B324 #D9D540 #E3E073 #EDEBA6

Accessibility & contrast

On white

1.55
#D9D540 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.54
#D9D540 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D9D540
13.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D9D540#FFFFFF#000000##000000
##D9D5401.001.5513.5413.54
#FFFFFF1.551.0021.0021.00
#00000013.5421.001.001.00
##00000013.5421.001.001.00

Color blindness preview

Protanopia (red-blind)
#E7CD26
Deuteranopia (green-blind)
#E9D24B
Tritanopia (blue-blind)
#E9C7B8
Achromatopsia (no color)
#CFCFCF

Design tokens & code

CSS
--color: #d9d540;
/* rgb */ color: rgb(217, 213, 64);
/* oklch */ color: oklch(85.1% 0.163 107.9);
Tailwind
colors: {
  custom: {
    50: '#e8e17e',
    500: '#d9d540',
    950: '#000000',
  },
}
SCSS
$custom: #d9d540;
$custom-light: #e8e17e;
$custom-dark: #000000;
JSON
{
  "hex": "#d9d540",
  "rgb": {
    "r": 217,
    "g": 213,
    "b": 64
  },
  "hsl": {
    "h": 58.431,
    "s": 66.812,
    "l": 55.098
  },
  "oklch": {
    "l": 0.85061,
    "c": 0.16276,
    "h": 107.9
  },
  "luminance": 0.6271
}

Semantic roles & 50–950 ramp

primary
#D9D540
secondary
#32358B
accent
#43EA3E
background
#FFFEFB
surface
#FEFCF2
border
#D6D5CC
text
#17150B
muted
#85847E

Preview Lab

Preview with #D9D540

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

Preview Lab → · Contrast checker → · Palette generator →

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