#D9D340#D9D340

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

Color values

HEX#D9D340
RGBrgb(217, 211, 64)
HSLhsl(58, 67%, 55%)
HSVhsv(58, 71%, 85%)
CMYKcmyk(0%, 2.8%, 70.5%, 14.9%)
CIE-LABlab(82.76, -14.57, 69.38)
CIE-LCHlch(82.76, 70.90, 101.86°)
OKLaboklab(84.64% -0.0471 0.1538)
OKLCHoklch(84.64% 0.161 107)
XYZxyz(52.8370, 61.7122, 13.9779)
Luminance0.6171 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D9D340 #4046D9
analogous
#D98640 #D9D340 #93D940
triadic
#D9D340 #40D9D3 #D340D9
tetradic
#D9D340 #40D986 #4046D9 #D94093
square
#D9D340 #40D986 #4046D9 #D94093
split-complementary
#D9D340 #4093D9 #8640D9
monochromatic
#84801A #B7B224 #D9D340 #E3DF73 #EDEBA6

Accessibility & contrast

On white

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

On black

13.34
#D9D340 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D9D340
13.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D9D340#FFFFFF#000000##000000
##D9D3401.001.5713.3413.34
#FFFFFF1.571.0021.0021.00
#00000013.3421.001.001.00
##00000013.3421.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #d9d340;
/* rgb */ color: rgb(217, 211, 64);
/* oklch */ color: oklch(84.6% 0.161 107.0);
Tailwind
colors: {
  custom: {
    50: '#e8e07e',
    500: '#d9d340',
    950: '#000000',
  },
}
SCSS
$custom: #d9d340;
$custom-light: #e8e07e;
$custom-dark: #000000;
JSON
{
  "hex": "#d9d340",
  "rgb": {
    "r": 217,
    "g": 211,
    "b": 64
  },
  "hsl": {
    "h": 57.647,
    "s": 66.812,
    "l": 55.098
  },
  "oklch": {
    "l": 0.84638,
    "c": 0.16089,
    "h": 107
  },
  "luminance": 0.6171
}

Semantic roles & 50–950 ramp

primary
#D9D340
secondary
#32368B
accent
#45EA3E
background
#FFFEFB
surface
#FEFCF2
border
#D6D5CC
text
#17150B
muted
#85847E

Preview Lab

Preview with #D9D340

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

Preview Lab → · Contrast checker → · Palette generator →

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