#D2D542#D2D542

#D2D542 is a very light, vivid yellow. Relative luminance 0.617; OKLCH L 84.5% C 0.163 H 110.6°. Best body text is #000000 at 13.34:1 contrast (WCAG AA passes).

Color values

HEX#D2D542
RGBrgb(210, 213, 66)
HSLhsl(61, 64%, 55%)
HSVhsv(61, 69%, 84%)
CMYKcmyk(1.4%, 0%, 69%, 16.5%)
CIE-LABlab(82.75, -18.38, 68.46)
CIE-LCHlch(82.75, 70.89, 105.03°)
OKLaboklab(84.49% -0.0572 0.1524)
OKLCHoklch(84.49% 0.163 110.6)
XYZxyz(51.3577, 61.6849, 14.3542)
Luminance0.6168 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D2D542 #4542D5
analogous
#D58E42 #D2D542 #89D542
triadic
#D2D542 #42D2D5 #D542D2
tetradic
#D2D542 #42D58E #4542D5 #D54289
square
#D2D542 #42D58E #4542D5 #D54289
split-complementary
#D2D542 #4289D5 #8E42D5
monochromatic
#7E801C #AFB228 #D2D542 #DEE074 #EAEBA6

Accessibility & contrast

On white

1.57
#D2D542 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.34
#D2D542 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D2D542
13.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D2D542#FFFFFF#000000##000000
##D2D5421.001.5713.3413.34
#FFFFFF1.571.0021.0021.00
#00000013.3421.001.001.00
##00000013.3421.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #d2d542;
/* rgb */ color: rgb(210, 213, 66);
/* oklch */ color: oklch(84.5% 0.163 110.6);
Tailwind
colors: {
  custom: {
    50: '#e3e17f',
    500: '#d2d542',
    950: '#000000',
  },
}
SCSS
$custom: #d2d542;
$custom-light: #e3e17f;
$custom-dark: #000000;
JSON
{
  "hex": "#d2d542",
  "rgb": {
    "r": 210,
    "g": 213,
    "b": 66
  },
  "hsl": {
    "h": 61.224,
    "s": 63.636,
    "l": 54.706
  },
  "oklch": {
    "l": 0.84494,
    "c": 0.16284,
    "h": 110.6
  },
  "luminance": 0.61683
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #D2D542

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

Preview Lab → · Contrast checker → · Palette generator →

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