#D9D740#D9D740

#D9D740 is a very light, vivid yellow. Relative luminance 0.637; OKLCH L 85.5% C 0.165 H 108.7°. Best body text is #000000 at 13.74:1 contrast (WCAG AA passes).

Color values

HEX#D9D740
RGBrgb(217, 215, 64)
HSLhsl(59, 67%, 55%)
HSVhsv(59, 71%, 85%)
CMYKcmyk(0%, 0.9%, 70.5%, 14.9%)
CIE-LABlab(83.82, -16.55, 70.41)
CIE-LCHlch(83.82, 72.33, 103.23°)
OKLaboklab(85.49% -0.0527 0.156)
OKLCHoklch(85.49% 0.165 108.7)
XYZxyz(53.8431, 63.7244, 14.3133)
Luminance0.6372 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D9D740 #4042D9
analogous
#D98B40 #D9D740 #8ED940
triadic
#D9D740 #40D9D7 #D740D9
tetradic
#D9D740 #40D98B #4042D9 #D9408E
square
#D9D740 #40D98B #4042D9 #D9408E
split-complementary
#D9D740 #408ED9 #8B40D9
monochromatic
#84831A #B7B524 #D9D740 #E3E273 #EDECA6

Accessibility & contrast

On white

1.53
#D9D740 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.74
#D9D740 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D9D740
13.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D9D740#FFFFFF#000000##000000
##D9D7401.001.5313.7413.74
#FFFFFF1.531.0021.0021.00
#00000013.7421.001.001.00
##00000013.7421.001.001.00

Color blindness preview

Protanopia (red-blind)
#E8CE25
Deuteranopia (green-blind)
#EBD34B
Tritanopia (blue-blind)
#E8C9BA
Achromatopsia (no color)
#D1D1D1

Design tokens & code

CSS
--color: #d9d740;
/* rgb */ color: rgb(217, 215, 64);
/* oklch */ color: oklch(85.5% 0.165 108.7);
Tailwind
colors: {
  custom: {
    50: '#e8e37f',
    500: '#d9d740',
    950: '#000000',
  },
}
SCSS
$custom: #d9d740;
$custom-light: #e8e37f;
$custom-dark: #000000;
JSON
{
  "hex": "#d9d740",
  "rgb": {
    "r": 217,
    "g": 215,
    "b": 64
  },
  "hsl": {
    "h": 59.216,
    "s": 66.812,
    "l": 55.098
  },
  "oklch": {
    "l": 0.85485,
    "c": 0.16466,
    "h": 108.7
  },
  "luminance": 0.63723
}

Semantic roles & 50–950 ramp

primary
#D9D740
secondary
#32348B
accent
#40EA3E
background
#FFFEFB
surface
#FEFCF2
border
#D6D5CC
text
#17150B
muted
#85847E

Preview Lab

Preview with #D9D740

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

Preview Lab → · Contrast checker → · Palette generator →

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