#D5D052#D5D052

#D5D052 is a very light, vivid yellow. Relative luminance 0.599; OKLCH L 83.8% C 0.146 H 107.0°. Best body text is #000000 at 12.97:1 contrast (WCAG AA passes).

Color values

HEX#D5D052
RGBrgb(213, 208, 82)
HSLhsl(58, 61%, 58%)
HSVhsv(58, 62%, 84%)
CMYKcmyk(0%, 2.3%, 61.5%, 16.5%)
CIE-LABlab(81.77, -13.73, 61.24)
CIE-LCHlch(81.77, 62.76, 102.63°)
OKLaboklab(83.81% -0.0427 0.1396)
OKLCHoklch(83.81% 0.146 107)
XYZxyz(51.5212, 59.8687, 16.8229)
Luminance0.5987 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D5D052 #5257D5
analogous
#D58E52 #D5D052 #98D552
triadic
#D5D052 #52D5D0 #D052D5
tetradic
#D5D052 #52D58E #5257D5 #D55298
square
#D5D052 #52D58E #5257D5 #D55298
split-complementary
#D5D052 #5298D5 #8E52D5
monochromatic
#8B8722 #BCB72E #D5D052 #E1DD83 #EDEBB4

Accessibility & contrast

On white

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

On black

12.97
#D5D052 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D5D052
12.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D5D052#FFFFFF#000000##000000
##D5D0521.001.6212.9712.97
#FFFFFF1.621.0021.0021.00
#00000012.9721.001.001.00
##00000012.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#E0C843
Deuteranopia (green-blind)
#E3CE59
Tritanopia (blue-blind)
#E3C3B5
Achromatopsia (no color)
#CBCBCB

Design tokens & code

CSS
--color: #d5d052;
/* rgb */ color: rgb(213, 208, 82);
/* oklch */ color: oklch(83.8% 0.146 107.0);
Tailwind
colors: {
  custom: {
    50: '#e5de88',
    500: '#d5d052',
    950: '#000000',
  },
}
SCSS
$custom: #d5d052;
$custom-light: #e5de88;
$custom-dark: #000000;
JSON
{
  "hex": "#d5d052",
  "rgb": {
    "r": 213,
    "g": 208,
    "b": 82
  },
  "hsl": {
    "h": 57.71,
    "s": 60.93,
    "l": 57.843
  },
  "oklch": {
    "l": 0.83808,
    "c": 0.14598,
    "h": 107
  },
  "luminance": 0.59867
}

Semantic roles & 50–950 ramp

primary
#D5D052
secondary
#3A3E91
accent
#4AE444
background
#FEFEFC
surface
#FDFCF4
border
#D5D5CE
text
#16150C
muted
#84847F

Preview Lab

Preview with #D5D052

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

Preview Lab → · Contrast checker → · Palette generator →

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