#D1D042#D1D042

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

Color values

HEX#D1D042
RGBrgb(209, 208, 66)
HSLhsl(60, 61%, 54%)
HSVhsv(60, 68%, 82%)
CMYKcmyk(0%, 0.5%, 68.4%, 18%)
CIE-LABlab(81.33, -16.32, 67.03)
CIE-LCHlch(81.33, 68.99, 103.69°)
OKLaboklab(83.34% -0.0514 0.1495)
OKLCHoklch(83.34% 0.158 109)
XYZxyz(49.8355, 59.0619, 13.9281)
Luminance0.5906 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D1D042 #4243D1
analogous
#D18942 #D1D042 #8BD142
triadic
#D1D042 #42D1D0 #D042D1
tetradic
#D1D042 #42D189 #4243D1 #D1428B
square
#D1D042 #42D189 #4243D1 #D1428B
split-complementary
#D1D042 #428BD1 #8942D1
monochromatic
#7B7A1E #ACAB2A #D1D042 #DDDC73 #E9E8A4

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##D1D042#FFFFFF#000000##000000
##D1D0421.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)
#E1C82B
Deuteranopia (green-blind)
#E3CC4C
Tritanopia (blue-blind)
#E0C3B4
Achromatopsia (no color)
#CACACA

Design tokens & code

CSS
--color: #d1d042;
/* rgb */ color: rgb(209, 208, 66);
/* oklch */ color: oklch(83.3% 0.158 109.0);
Tailwind
colors: {
  custom: {
    50: '#e3de7f',
    500: '#d1d042',
    950: '#000000',
  },
}
SCSS
$custom: #d1d042;
$custom-light: #e3de7f;
$custom-dark: #000000;
JSON
{
  "hex": "#d1d042",
  "rgb": {
    "r": 209,
    "g": 208,
    "b": 66
  },
  "hsl": {
    "h": 59.58,
    "s": 60.851,
    "l": 53.922
  },
  "oklch": {
    "l": 0.8334,
    "c": 0.15805,
    "h": 109
  },
  "luminance": 0.5906
}

Semantic roles & 50–950 ramp

primary
#D1D042
secondary
#353583
accent
#45E444
background
#FEFEFB
surface
#FDFCF2
border
#D5D5CC
text
#16150B
muted
#84847E

Preview Lab

Preview with #D1D042

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

Preview Lab → · Contrast checker → · Palette generator →

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