#D1D540#D1D540

#D1D540 is a very light, vivid yellow. Relative luminance 0.615; OKLCH L 84.4% C 0.164 H 111.0°. Best body text is #000000 at 13.30:1 contrast (WCAG AA passes).

Color values

HEX#D1D540
RGBrgb(209, 213, 64)
HSLhsl(62, 64%, 54%)
HSVhsv(62, 70%, 84%)
CMYKcmyk(1.9%, 0%, 70%, 16.5%)
CIE-LABlab(82.66, -18.89, 69.06)
CIE-LCHlch(82.66, 71.60, 105.30°)
OKLaboklab(84.4% -0.0588 0.1534)
OKLCHoklch(84.4% 0.164 111)
XYZxyz(51.0158, 61.5153, 14.0358)
Luminance0.6151 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D1D540 #4440D5
analogous
#D58F40 #D1D540 #87D540
triadic
#D1D540 #40D1D5 #D540D1
tetradic
#D1D540 #40D58F #4440D5 #D54087
square
#D1D540 #40D58F #4440D5 #D54087
split-complementary
#D1D540 #4087D5 #8F40D5
monochromatic
#7C7F1C #ADB127 #D1D540 #DDE072 #E9EBA4

Accessibility & contrast

On white

1.58
#D1D540 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.30
#D1D540 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D1D540
13.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D1D540#FFFFFF#000000##000000
##D1D5401.001.5813.3013.30
#FFFFFF1.581.0021.0021.00
#00000013.3021.001.001.00
##00000013.3021.001.001.00

Color blindness preview

Protanopia (red-blind)
#E5CC26
Deuteranopia (green-blind)
#E6D04B
Tritanopia (blue-blind)
#DFC8B8
Achromatopsia (no color)
#CECECE

Design tokens & code

CSS
--color: #d1d540;
/* rgb */ color: rgb(209, 213, 64);
/* oklch */ color: oklch(84.4% 0.164 111.0);
Tailwind
colors: {
  custom: {
    50: '#e3e17e',
    500: '#d1d540',
    950: '#000000',
  },
}
SCSS
$custom: #d1d540;
$custom-light: #e3e17e;
$custom-dark: #000000;
JSON
{
  "hex": "#d1d540",
  "rgb": {
    "r": 209,
    "g": 213,
    "b": 64
  },
  "hsl": {
    "h": 61.611,
    "s": 63.948,
    "l": 54.314
  },
  "oklch": {
    "l": 0.84398,
    "c": 0.1643,
    "h": 111
  },
  "luminance": 0.61514
}

Semantic roles & 50–950 ramp

primary
#D1D540
secondary
#353386
accent
#41E745
background
#FEFEFB
surface
#FDFCF2
border
#D5D5CC
text
#16150B
muted
#84847E

Preview Lab

Preview with #D1D540

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

Preview Lab → · Contrast checker → · Palette generator →

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