#D1D040#D1D040

#D1D040 is a very light, vivid yellow. Relative luminance 0.590; OKLCH L 83.3% C 0.159 H 109.0°. Best body text is #000000 at 12.81:1 contrast (WCAG AA passes).

Color values

HEX#D1D040
RGBrgb(209, 208, 64)
HSLhsl(60, 61%, 54%)
HSVhsv(60, 69%, 82%)
CMYKcmyk(0%, 0.5%, 69.4%, 18%)
CIE-LABlab(81.31, -16.42, 67.75)
CIE-LCHlch(81.31, 69.71, 103.63°)
OKLaboklab(83.33% -0.0519 0.1506)
OKLCHoklch(83.33% 0.159 109)
XYZxyz(49.7776, 59.0387, 13.6230)
Luminance0.5904 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D1D040 #4041D1
analogous
#D18740 #D1D040 #89D140
triadic
#D1D040 #40D1D0 #D040D1
tetradic
#D1D040 #40D187 #4041D1 #D14089
square
#D1D040 #40D187 #4041D1 #D14089
split-complementary
#D1D040 #4089D1 #8740D1
monochromatic
#79791D #ABAA29 #D1D040 #DDDC71 #E9E8A3

Accessibility & contrast

On white

1.64
#D1D040 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.81
#D1D040 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D1D040
12.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D1D040#FFFFFF#000000##000000
##D1D0401.001.6412.8112.81
#FFFFFF1.641.0021.0021.00
#00000012.8121.001.001.00
##00000012.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#E1C728
Deuteranopia (green-blind)
#E3CC4A
Tritanopia (blue-blind)
#E0C3B4
Achromatopsia (no color)
#CACACA

Design tokens & code

CSS
--color: #d1d040;
/* rgb */ color: rgb(209, 208, 64);
/* oklch */ color: oklch(83.3% 0.159 109.0);
Tailwind
colors: {
  custom: {
    50: '#e3de7e',
    500: '#d1d040',
    950: '#000000',
  },
}
SCSS
$custom: #d1d040;
$custom-light: #e3de7e;
$custom-dark: #000000;
JSON
{
  "hex": "#d1d040",
  "rgb": {
    "r": 209,
    "g": 208,
    "b": 64
  },
  "hsl": {
    "h": 59.586,
    "s": 61.181,
    "l": 53.529
  },
  "oklch": {
    "l": 0.83326,
    "c": 0.15933,
    "h": 109
  },
  "luminance": 0.59037
}

Semantic roles & 50–950 ramp

primary
#D1D040
secondary
#343481
accent
#45E444
background
#FEFEFB
surface
#FDFCF2
border
#D5D5CC
text
#16150A
muted
#84847D

Preview Lab

Preview with #D1D040

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

Preview Lab → · Contrast checker → · Palette generator →

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