#D1D942#D1D942

#D1D942 is a very light, vivid yellow. Relative luminance 0.636; OKLCH L 85.3% C 0.167 H 112.4°. Best body text is #000000 at 13.71:1 contrast (WCAG AA passes).

Color values

HEX#D1D942
RGBrgb(209, 217, 66)
HSLhsl(63, 67%, 55%)
HSVhsv(63, 70%, 85%)
CMYKcmyk(3.7%, 0%, 69.6%, 14.9%)
CIE-LABlab(83.74, -20.75, 69.42)
CIE-LCHlch(83.74, 72.45, 106.64°)
OKLaboklab(85.27% -0.0638 0.1545)
OKLCHoklch(85.27% 0.167 112.4)
XYZxyz(52.0923, 63.5756, 14.6804)
Luminance0.6357 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D1D942 #4A42D9
analogous
#D99642 #D1D942 #85D942
triadic
#D1D942 #42D1D9 #D942D1
tetradic
#D1D942 #42D996 #4A42D9 #D94285
square
#D1D942 #42D996 #4A42D9 #D94285
split-complementary
#D1D942 #4285D9 #9642D9
monochromatic
#80861B #B1B925 #D1D942 #DDE375 #EAEDA8

Accessibility & contrast

On white

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

On black

13.71
#D1D942 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D1D942
13.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D1D942#FFFFFF#000000##000000
##D1D9421.001.5313.7113.71
#FFFFFF1.531.0021.0021.00
#00000013.7121.001.001.00
##00000013.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#E9CF28
Deuteranopia (green-blind)
#EAD24D
Tritanopia (blue-blind)
#DFCCBB
Achromatopsia (no color)
#D1D1D1

Design tokens & code

CSS
--color: #d1d942;
/* rgb */ color: rgb(209, 217, 66);
/* oklch */ color: oklch(85.3% 0.167 112.4);
Tailwind
colors: {
  custom: {
    50: '#e3e480',
    500: '#d1d942',
    950: '#000000',
  },
}
SCSS
$custom: #d1d942;
$custom-light: #e3e480;
$custom-dark: #000000;
JSON
{
  "hex": "#d1d942",
  "rgb": {
    "r": 209,
    "g": 217,
    "b": 66
  },
  "hsl": {
    "h": 63.179,
    "s": 66.52,
    "l": 55.49
  },
  "oklch": {
    "l": 0.85274,
    "c": 0.16716,
    "h": 112.4
  },
  "luminance": 0.63574
}

Semantic roles & 50–950 ramp

primary
#D1D942
secondary
#38338C
accent
#3EE947
background
#FEFEFB
surface
#FDFCF2
border
#D5D5CC
text
#16150B
muted
#84847E

Preview Lab

Preview with #D1D942

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

Preview Lab → · Contrast checker → · Palette generator →

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