#D9C752#D9C752

#D9C752 is a very light, vivid yellow. Relative luminance 0.562; OKLCH L 82.3% C 0.137 H 100.6°. Best body text is #000000 at 12.24:1 contrast (WCAG AA passes).

Color values

HEX#D9C752
RGBrgb(217, 199, 82)
HSLhsl(52, 64%, 59%)
HSVhsv(52, 62%, 85%)
CMYKcmyk(0%, 8.3%, 62.2%, 14.9%)
CIE-LABlab(79.73, -7.50, 59.15)
CIE-LCHlch(79.73, 59.63, 97.23°)
OKLaboklab(82.27% -0.0252 0.1351)
OKLCHoklch(82.27% 0.137 100.6)
XYZxyz(50.5637, 56.2099, 16.1672)
Luminance0.5621 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D9C752 #5264D9
analogous
#D98352 #D9C752 #A7D952
triadic
#D9C752 #52D9C7 #C752D9
tetradic
#D9C752 #52D983 #5264D9 #D952A7
square
#D9C752 #52D983 #5264D9 #D952A7
split-complementary
#D9C752 #52A7D9 #8352D9
monochromatic
#918220 #C3AF2B #D9C752 #E4D784 #EFE7B6

Accessibility & contrast

On white

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

On black

12.24
#D9C752 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D9C752
12.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D9C752#FFFFFF#000000##000000
##D9C7521.001.7212.2412.24
#FFFFFF1.721.0021.0021.00
#00000012.2421.001.001.00
##00000012.2421.001.001.00

Color blindness preview

Protanopia (red-blind)
#D8C244
Deuteranopia (green-blind)
#DEC958
Tritanopia (blue-blind)
#E9BAAE
Achromatopsia (no color)
#C6C6C6

Design tokens & code

CSS
--color: #d9c752;
/* rgb */ color: rgb(217, 199, 82);
/* oklch */ color: oklch(82.3% 0.137 100.6);
Tailwind
colors: {
  custom: {
    50: '#e8d787',
    500: '#d9c752',
    950: '#000000',
  },
}
SCSS
$custom: #d9c752;
$custom-light: #e8d787;
$custom-dark: #000000;
JSON
{
  "hex": "#d9c752",
  "rgb": {
    "r": 217,
    "g": 199,
    "b": 82
  },
  "hsl": {
    "h": 52,
    "s": 63.981,
    "l": 58.627
  },
  "oklch": {
    "l": 0.82272,
    "c": 0.13739,
    "h": 100.6
  },
  "luminance": 0.56208
}

Semantic roles & 50–950 ramp

primary
#D9C752
secondary
#394696
accent
#57E741
background
#FFFEFC
surface
#FEFBF3
border
#D6D4CD
text
#16140C
muted
#85837F

Preview Lab

Preview with #D9C752

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

Preview Lab → · Contrast checker → · Palette generator →

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