#D1D542#D1D542

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

Color values

HEX#D1D542
RGBrgb(209, 213, 66)
HSLhsl(62, 64%, 55%)
HSVhsv(62, 69%, 84%)
CMYKcmyk(1.9%, 0%, 69%, 16.5%)
CIE-LABlab(82.67, -18.79, 68.36)
CIE-LCHlch(82.67, 70.89, 105.37°)
OKLaboklab(84.41% -0.0584 0.1523)
OKLCHoklch(84.41% 0.163 111)
XYZxyz(51.0738, 61.5385, 14.3409)
Luminance0.6154 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D1D542 #4642D5
analogous
#D59042 #D1D542 #87D542
triadic
#D1D542 #42D1D5 #D542D1
tetradic
#D1D542 #42D590 #4642D5 #D54287
square
#D1D542 #42D590 #4642D5 #D54287
split-complementary
#D1D542 #4287D5 #9042D5
monochromatic
#7D801C #AEB228 #D1D542 #DDE074 #E9EBA6

Accessibility & contrast

On white

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

On black

13.31
#D1D542 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D1D542
13.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D1D542#FFFFFF#000000##000000
##D1D5421.001.5813.3113.31
#FFFFFF1.581.0021.0021.00
#00000013.3121.001.001.00
##00000013.3121.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #d1d542;
/* rgb */ color: rgb(209, 213, 66);
/* oklch */ color: oklch(84.4% 0.163 111.0);
Tailwind
colors: {
  custom: {
    50: '#e3e17f',
    500: '#d1d542',
    950: '#000000',
  },
}
SCSS
$custom: #d1d542;
$custom-light: #e3e17f;
$custom-dark: #000000;
JSON
{
  "hex": "#d1d542",
  "rgb": {
    "r": 209,
    "g": 213,
    "b": 66
  },
  "hsl": {
    "h": 61.633,
    "s": 63.636,
    "l": 54.706
  },
  "oklch": {
    "l": 0.84412,
    "c": 0.16305,
    "h": 111
  },
  "luminance": 0.61537
}

Semantic roles & 50–950 ramp

primary
#D1D542
secondary
#363487
accent
#41E746
background
#FEFEFB
surface
#FDFCF2
border
#D5D5CC
text
#16150B
muted
#84847E

Preview Lab

Preview with #D1D542

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

Preview Lab → · Contrast checker → · Palette generator →

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