#D5D542#D5D542

#D5D542 is a very light, vivid yellow. Relative luminance 0.621; OKLCH L 84.7% C 0.162 H 109.4°. Best body text is #000000 at 13.43:1 contrast (WCAG AA passes).

Color values

HEX#D5D542
RGBrgb(213, 213, 66)
HSLhsl(60, 64%, 55%)
HSVhsv(60, 69%, 84%)
CMYKcmyk(0%, 0%, 69%, 16.5%)
CIE-LABlab(82.98, -17.13, 68.77)
CIE-LCHlch(82.98, 70.88, 103.99°)
OKLaboklab(84.74% -0.0539 0.153)
OKLCHoklch(84.74% 0.162 109.4)
XYZxyz(52.2200, 62.1295, 14.3946)
Luminance0.6213 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D5D542 #4242D5
analogous
#D58C42 #D5D542 #8CD542
triadic
#D5D542 #42D5D5 #D542D5
tetradic
#D5D542 #42D58C #4242D5 #D5428C
square
#D5D542 #42D58C #4242D5 #D5428C
split-complementary
#D5D542 #428CD5 #8C42D5
monochromatic
#80801C #B2B228 #D5D542 #E0E074 #EBEBA6

Accessibility & contrast

On white

1.56
#D5D542 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.43
#D5D542 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D5D542
13.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D5D542#FFFFFF#000000##000000
##D5D5421.001.5613.4313.43
#FFFFFF1.561.0021.0021.00
#00000013.4321.001.001.00
##00000013.4321.001.001.00

Color blindness preview

Protanopia (red-blind)
#E6CC2A
Deuteranopia (green-blind)
#E8D14D
Tritanopia (blue-blind)
#E4C8B8
Achromatopsia (no color)
#CFCFCF

Design tokens & code

CSS
--color: #d5d542;
/* rgb */ color: rgb(213, 213, 66);
/* oklch */ color: oklch(84.7% 0.162 109.4);
Tailwind
colors: {
  custom: {
    50: '#e5e17f',
    500: '#d5d542',
    950: '#000000',
  },
}
SCSS
$custom: #d5d542;
$custom-light: #e5e17f;
$custom-dark: #000000;
JSON
{
  "hex": "#d5d542",
  "rgb": {
    "r": 213,
    "g": 213,
    "b": 66
  },
  "hsl": {
    "h": 60,
    "s": 63.636,
    "l": 54.706
  },
  "oklch": {
    "l": 0.84741,
    "c": 0.16223,
    "h": 109.4
  },
  "luminance": 0.62128
}

Semantic roles & 50–950 ramp

primary
#D5D542
secondary
#343487
accent
#41E741
background
#FFFEFB
surface
#FEFCF2
border
#D6D5CC
text
#16150B
muted
#85847E

Preview Lab

Preview with #D5D542

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

Preview Lab → · Contrast checker → · Palette generator →

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