#D8C752#D8C752

#D8C752 is a very light, vivid yellow. Relative luminance 0.561; OKLCH L 82.2% C 0.137 H 101.1°. Best body text is #000000 at 12.21:1 contrast (WCAG AA passes).

Color values

HEX#D8C752
RGBrgb(216, 199, 82)
HSLhsl(52, 63%, 58%)
HSVhsv(52, 62%, 85%)
CMYKcmyk(0%, 7.9%, 62%, 15.3%)
CIE-LABlab(79.65, -7.92, 59.03)
CIE-LCHlch(79.65, 59.56, 97.64°)
OKLaboklab(82.18% -0.0263 0.1348)
OKLCHoklch(82.18% 0.137 101.1)
XYZxyz(50.2673, 56.0570, 16.1533)
Luminance0.5605 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D8C752 #5263D8
analogous
#D88452 #D8C752 #A6D852
triadic
#D8C752 #52D8C7 #C752D8
tetradic
#D8C752 #52D884 #5263D8 #D852A6
square
#D8C752 #52D884 #5263D8 #D852A6
split-complementary
#D8C752 #52A6D8 #8452D8
monochromatic
#8F8120 #C1AE2C #D8C752 #E3D784 #EFE7B6

Accessibility & contrast

On white

1.72
#D8C752 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.21
#D8C752 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D8C752
12.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D8C752#FFFFFF#000000##000000
##D8C7521.001.7212.2112.21
#FFFFFF1.721.0021.0021.00
#00000012.2121.001.001.00
##00000012.2121.001.001.00

Color blindness preview

Protanopia (red-blind)
#D8C144
Deuteranopia (green-blind)
#DDC858
Tritanopia (blue-blind)
#E8BAAE
Achromatopsia (no color)
#C5C5C5

Design tokens & code

CSS
--color: #d8c752;
/* rgb */ color: rgb(216, 199, 82);
/* oklch */ color: oklch(82.2% 0.137 101.1);
Tailwind
colors: {
  custom: {
    50: '#e7d787',
    500: '#d8c752',
    950: '#000000',
  },
}
SCSS
$custom: #d8c752;
$custom-light: #e7d787;
$custom-dark: #000000;
JSON
{
  "hex": "#d8c752",
  "rgb": {
    "r": 216,
    "g": 199,
    "b": 82
  },
  "hsl": {
    "h": 52.388,
    "s": 63.208,
    "l": 58.431
  },
  "oklch": {
    "l": 0.82183,
    "c": 0.13738,
    "h": 101.1
  },
  "luminance": 0.56055
}

Semantic roles & 50–950 ramp

primary
#D8C752
secondary
#394595
accent
#56E642
background
#FFFEFC
surface
#FEFBF3
border
#D6D4CD
text
#16140C
muted
#85837F

Preview Lab

Preview with #D8C752

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

Preview Lab → · Contrast checker → · Palette generator →

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