#D9D840#D9D840

#D9D840 is a very light, vivid yellow. Relative luminance 0.642; OKLCH L 85.7% C 0.166 H 109.1°. Best body text is #000000 at 13.85:1 contrast (WCAG AA passes).

Color values

HEX#D9D840
RGBrgb(217, 216, 64)
HSLhsl(60, 67%, 55%)
HSVhsv(60, 71%, 85%)
CMYKcmyk(0%, 0.5%, 70.5%, 14.9%)
CIE-LABlab(84.09, -17.05, 70.67)
CIE-LCHlch(84.09, 72.70, 103.56°)
OKLaboklab(85.7% -0.0541 0.1566)
OKLCHoklch(85.7% 0.166 109.1)
XYZxyz(54.0985, 64.2353, 14.3984)
Luminance0.6423 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D9D840 #4041D9
analogous
#D98C40 #D9D840 #8DD940
triadic
#D9D840 #40D9D8 #D840D9
tetradic
#D9D840 #40D98C #4041D9 #D9408D
square
#D9D840 #40D98C #4041D9 #D9408D
split-complementary
#D9D840 #408DD9 #8C40D9
monochromatic
#84841A #B7B624 #D9D840 #E3E273 #EDEDA6

Accessibility & contrast

On white

1.52
#D9D840 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.85
#D9D840 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D9D840
13.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D9D840#FFFFFF#000000##000000
##D9D8401.001.5213.8513.85
#FFFFFF1.521.0021.0021.00
#00000013.8521.001.001.00
##00000013.8521.001.001.00

Color blindness preview

Protanopia (red-blind)
#E9CF25
Deuteranopia (green-blind)
#EBD44B
Tritanopia (blue-blind)
#E8CABA
Achromatopsia (no color)
#D2D2D2

Design tokens & code

CSS
--color: #d9d840;
/* rgb */ color: rgb(217, 216, 64);
/* oklch */ color: oklch(85.7% 0.166 109.1);
Tailwind
colors: {
  custom: {
    50: '#e8e37f',
    500: '#d9d840',
    950: '#000000',
  },
}
SCSS
$custom: #d9d840;
$custom-light: #e8e37f;
$custom-dark: #000000;
JSON
{
  "hex": "#d9d840",
  "rgb": {
    "r": 217,
    "g": 216,
    "b": 64
  },
  "hsl": {
    "h": 59.608,
    "s": 66.812,
    "l": 55.098
  },
  "oklch": {
    "l": 0.85697,
    "c": 0.16563,
    "h": 109.1
  },
  "luminance": 0.64234
}

Semantic roles & 50–950 ramp

primary
#D9D840
secondary
#32338B
accent
#3FEA3E
background
#FFFEFB
surface
#FEFCF2
border
#D6D5CC
text
#17150B
muted
#85847E

Preview Lab

Preview with #D9D840

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

Preview Lab → · Contrast checker → · Palette generator →

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