#D8DC52#D8DC52

#D8DC52 is a very light, vivid yellow. Relative luminance 0.664; OKLCH L 86.6% C 0.158 H 110.9°. Best body text is #000000 at 14.28:1 contrast (WCAG AA passes).

Color values

HEX#D8DC52
RGBrgb(216, 220, 82)
HSLhsl(62, 66%, 59%)
HSVhsv(62, 63%, 86%)
CMYKcmyk(1.8%, 0%, 62.7%, 13.7%)
CIE-LABlab(85.20, -18.44, 64.97)
CIE-LCHlch(85.20, 67.53, 105.85°)
OKLaboklab(86.6% -0.0562 0.1474)
OKLCHoklch(86.6% 0.158 110.9)
XYZxyz(55.4367, 66.3959, 17.8764)
Luminance0.6640 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D8DC52 #5652DC
analogous
#DC9B52 #D8DC52 #93DC52
triadic
#D8DC52 #52D8DC #DC52D8
tetradic
#D8DC52 #52DC9B #5652DC #DC5293
square
#D8DC52 #52DC9B #5652DC #DC5293
split-complementary
#D8DC52 #5293DC #9B52DC
monochromatic
#92951E #C4C829 #D8DC52 #E3E685 #EFF1B8

Accessibility & contrast

On white

1.47
#D8DC52 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

14.28
#D8DC52 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D8DC52
14.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D8DC52#FFFFFF#000000##000000
##D8DC521.001.4714.2814.28
#FFFFFF1.471.0021.0021.00
#00000014.2821.001.001.00
##00000014.2821.001.001.00

Color blindness preview

Protanopia (red-blind)
#ECD340
Deuteranopia (green-blind)
#EDD75B
Tritanopia (blue-blind)
#E6CFBF
Achromatopsia (no color)
#D5D5D5

Design tokens & code

CSS
--color: #d8dc52;
/* rgb */ color: rgb(216, 220, 82);
/* oklch */ color: oklch(86.6% 0.158 110.9);
Tailwind
colors: {
  custom: {
    50: '#e7e689',
    500: '#d8dc52',
    950: '#000000',
  },
}
SCSS
$custom: #d8dc52;
$custom-light: #e7e689;
$custom-dark: #000000;
JSON
{
  "hex": "#d8dc52",
  "rgb": {
    "r": 216,
    "g": 220,
    "b": 82
  },
  "hsl": {
    "h": 61.739,
    "s": 66.346,
    "l": 59.216
  },
  "oklch": {
    "l": 0.86604,
    "c": 0.15773,
    "h": 110.9
  },
  "luminance": 0.66395
}

Semantic roles & 50–950 ramp

primary
#D8DC52
secondary
#3B389A
accent
#3FE943
background
#FFFEFC
surface
#FEFCF4
border
#D6D5CE
text
#16150C
muted
#85847F

Preview Lab

Preview with #D8DC52

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

Preview Lab → · Contrast checker → · Palette generator →

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