#D5D042#D5D042

#D5D042 is a very light, vivid yellow. Relative luminance 0.597; OKLCH L 83.7% C 0.157 H 107.4°. Best body text is #000000 at 12.93:1 contrast (WCAG AA passes).

Color values

HEX#D5D042
RGBrgb(213, 208, 66)
HSLhsl(58, 64%, 55%)
HSVhsv(58, 69%, 84%)
CMYKcmyk(0%, 2.3%, 69%, 16.5%)
CIE-LABlab(81.65, -14.65, 67.46)
CIE-LCHlch(81.65, 69.03, 102.25°)
OKLaboklab(83.68% -0.0469 0.1502)
OKLCHoklch(83.68% 0.157 107.4)
XYZxyz(50.9817, 59.6529, 13.9819)
Luminance0.5965 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D5D042 #4247D5
analogous
#D58642 #D5D042 #91D542
triadic
#D5D042 #42D5D0 #D042D5
tetradic
#D5D042 #42D586 #4247D5 #D54291
square
#D5D042 #42D586 #4247D5 #D54291
split-complementary
#D5D042 #4291D5 #8642D5
monochromatic
#807D1C #B2AD28 #D5D042 #E0DC74 #EBE9A6

Accessibility & contrast

On white

1.62
#D5D042 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.93
#D5D042 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D5D042
12.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D5D042#FFFFFF#000000##000000
##D5D0421.001.6212.9312.93
#FFFFFF1.621.0021.0021.00
#00000012.9321.001.001.00
##00000012.9321.001.001.00

Color blindness preview

Protanopia (red-blind)
#E1C82B
Deuteranopia (green-blind)
#E4CD4C
Tritanopia (blue-blind)
#E4C3B4
Achromatopsia (no color)
#CBCBCB

Design tokens & code

CSS
--color: #d5d042;
/* rgb */ color: rgb(213, 208, 66);
/* oklch */ color: oklch(83.7% 0.157 107.4);
Tailwind
colors: {
  custom: {
    50: '#e5de7f',
    500: '#d5d042',
    950: '#000000',
  },
}
SCSS
$custom: #d5d042;
$custom-light: #e5de7f;
$custom-dark: #000000;
JSON
{
  "hex": "#d5d042",
  "rgb": {
    "r": 213,
    "g": 208,
    "b": 66
  },
  "hsl": {
    "h": 57.959,
    "s": 63.636,
    "l": 54.706
  },
  "oklch": {
    "l": 0.83677,
    "c": 0.1574,
    "h": 107.4
  },
  "luminance": 0.59651
}

Semantic roles & 50–950 ramp

primary
#D5D042
secondary
#343787
accent
#47E741
background
#FFFEFB
surface
#FEFCF2
border
#D6D5CC
text
#16150B
muted
#85847E

Preview Lab

Preview with #D5D042

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

Preview Lab → · Contrast checker → · Palette generator →

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