#D1D240#D1D240

#D1D240 is a very light, vivid yellow. Relative luminance 0.600; OKLCH L 83.8% C 0.161 H 109.8°. Best body text is #000000 at 13.00:1 contrast (WCAG AA passes).

Color values

HEX#D1D240
RGBrgb(209, 210, 64)
HSLhsl(60, 62%, 54%)
HSVhsv(60, 70%, 82%)
CMYKcmyk(0.5%, 0%, 69.5%, 17.6%)
CIE-LABlab(81.85, -17.42, 68.28)
CIE-LCHlch(81.85, 70.46, 104.31°)
OKLaboklab(83.75% -0.0547 0.1517)
OKLCHoklch(83.75% 0.161 109.8)
XYZxyz(50.2682, 60.0201, 13.7866)
Luminance0.6002 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D1D240 #4140D2
analogous
#D28A40 #D1D240 #88D240
triadic
#D1D240 #40D1D2 #D240D1
tetradic
#D1D240 #40D28A #4140D2 #D24088
square
#D1D240 #40D28A #4140D2 #D24088
split-complementary
#D1D240 #4088D2 #8A40D2
monochromatic
#7A7B1D #ABAC29 #D1D240 #DDDE72 #E9E9A3

Accessibility & contrast

On white

1.61
#D1D240 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.00
#D1D240 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D1D240
13.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D1D240#FFFFFF#000000##000000
##D1D2401.001.6113.0013.00
#FFFFFF1.611.0021.0021.00
#00000013.0021.001.001.00
##00000013.0021.001.001.00

Color blindness preview

Protanopia (red-blind)
#E3C927
Deuteranopia (green-blind)
#E4CE4B
Tritanopia (blue-blind)
#E0C5B5
Achromatopsia (no color)
#CBCBCB

Design tokens & code

CSS
--color: #d1d240;
/* rgb */ color: rgb(209, 210, 64);
/* oklch */ color: oklch(83.8% 0.161 109.8);
Tailwind
colors: {
  custom: {
    50: '#e3df7e',
    500: '#d1d240',
    950: '#000000',
  },
}
SCSS
$custom: #d1d240;
$custom-light: #e3df7e;
$custom-dark: #000000;
JSON
{
  "hex": "#d1d240",
  "rgb": {
    "r": 209,
    "g": 210,
    "b": 64
  },
  "hsl": {
    "h": 60.411,
    "s": 61.864,
    "l": 53.725
  },
  "oklch": {
    "l": 0.83754,
    "c": 0.16129,
    "h": 109.8
  },
  "luminance": 0.60019
}

Semantic roles & 50–950 ramp

primary
#D1D240
secondary
#343483
accent
#43E544
background
#FEFEFB
surface
#FDFCF2
border
#D5D5CC
text
#16150B
muted
#84847E

Preview Lab

Preview with #D1D240

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

Preview Lab → · Contrast checker → · Palette generator →

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