#D8D752#D8D752

#D8D752 is a very light, vivid yellow. Relative luminance 0.638; OKLCH L 85.5% C 0.153 H 108.8°. Best body text is #000000 at 13.76:1 contrast (WCAG AA passes).

Color values

HEX#D8D752
RGBrgb(216, 215, 82)
HSLhsl(60, 63%, 58%)
HSVhsv(60, 62%, 85%)
CMYKcmyk(0%, 0.5%, 62%, 15.3%)
CIE-LABlab(83.87, -15.98, 63.56)
CIE-LCHlch(83.87, 65.54, 104.11°)
OKLaboklab(85.54% -0.0492 0.1444)
OKLCHoklch(85.54% 0.153 108.8)
XYZxyz(54.1441, 63.8106, 17.4455)
Luminance0.6381 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D8D752 #5253D8
analogous
#D89452 #D8D752 #96D852
triadic
#D8D752 #52D8D7 #D752D8
tetradic
#D8D752 #52D894 #5253D8 #D85296
square
#D8D752 #52D894 #5253D8 #D85296
split-complementary
#D8D752 #5296D8 #9452D8
monochromatic
#8F8E20 #C1C02C #D8D752 #E3E384 #EFEEB6

Accessibility & contrast

On white

1.53
#D8D752 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.76
#D8D752 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D8D752
13.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D8D752#FFFFFF#000000##000000
##D8D7521.001.5313.7613.76
#FFFFFF1.531.0021.0021.00
#00000013.7621.001.001.00
##00000013.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#E7CF41
Deuteranopia (green-blind)
#E9D35A
Tritanopia (blue-blind)
#E6CABB
Achromatopsia (no color)
#D1D1D1

Design tokens & code

CSS
--color: #d8d752;
/* rgb */ color: rgb(216, 215, 82);
/* oklch */ color: oklch(85.5% 0.153 108.8);
Tailwind
colors: {
  custom: {
    50: '#e7e389',
    500: '#d8d752',
    950: '#000000',
  },
}
SCSS
$custom: #d8d752;
$custom-light: #e7e389;
$custom-dark: #000000;
JSON
{
  "hex": "#d8d752",
  "rgb": {
    "r": 216,
    "g": 215,
    "b": 82
  },
  "hsl": {
    "h": 59.552,
    "s": 63.208,
    "l": 58.431
  },
  "oklch": {
    "l": 0.85541,
    "c": 0.15258,
    "h": 108.8
  },
  "luminance": 0.63809
}

Semantic roles & 50–950 ramp

primary
#D8D752
secondary
#393A95
accent
#43E642
background
#FFFEFC
surface
#FEFCF4
border
#D6D5CE
text
#16150C
muted
#85847F

Preview Lab

Preview with #D8D752

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

Preview Lab → · Contrast checker → · Palette generator →

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