#D9D240#D9D240

#D9D240 is a very light, vivid yellow. Relative luminance 0.612; OKLCH L 84.4% C 0.160 H 106.6°. Best body text is #000000 at 13.24:1 contrast (WCAG AA passes).

Color values

HEX#D9D240
RGBrgb(217, 210, 64)
HSLhsl(57, 67%, 55%)
HSVhsv(57, 71%, 85%)
CMYKcmyk(0%, 3.2%, 70.5%, 14.9%)
CIE-LABlab(82.50, -14.07, 69.13)
CIE-LCHlch(82.50, 70.54, 101.51°)
OKLaboklab(84.43% -0.0457 0.1533)
OKLCHoklch(84.43% 0.16 106.6)
XYZxyz(52.5893, 61.2169, 13.8954)
Luminance0.6121 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D9D240 #4047D9
analogous
#D98640 #D9D240 #93D940
triadic
#D9D240 #40D9D2 #D240D9
tetradic
#D9D240 #40D986 #4047D9 #D94093
square
#D9D240 #40D986 #4047D9 #D94093
split-complementary
#D9D240 #4093D9 #8640D9
monochromatic
#847F1A #B7B124 #D9D240 #E3DE73 #EDEAA6

Accessibility & contrast

On white

1.59
#D9D240 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.24
#D9D240 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D9D240
13.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D9D240#FFFFFF#000000##000000
##D9D2401.001.5913.2413.24
#FFFFFF1.591.0021.0021.00
#00000013.2421.001.001.00
##00000013.2421.001.001.00

Color blindness preview

Protanopia (red-blind)
#E4CA27
Deuteranopia (green-blind)
#E7D04A
Tritanopia (blue-blind)
#E9C4B5
Achromatopsia (no color)
#CDCDCD

Design tokens & code

CSS
--color: #d9d240;
/* rgb */ color: rgb(217, 210, 64);
/* oklch */ color: oklch(84.4% 0.160 106.6);
Tailwind
colors: {
  custom: {
    50: '#e8df7e',
    500: '#d9d240',
    950: '#000000',
  },
}
SCSS
$custom: #d9d240;
$custom-light: #e8df7e;
$custom-dark: #000000;
JSON
{
  "hex": "#d9d240",
  "rgb": {
    "r": 217,
    "g": 210,
    "b": 64
  },
  "hsl": {
    "h": 57.255,
    "s": 66.812,
    "l": 55.098
  },
  "oklch": {
    "l": 0.84427,
    "c": 0.15996,
    "h": 106.6
  },
  "luminance": 0.61215
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #D9D240

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

Preview Lab → · Contrast checker → · Palette generator →

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