#D9C852#D9C852

#D9C852 is a very light, vivid yellow. Relative luminance 0.567; OKLCH L 82.5% C 0.138 H 101.1°. Best body text is #000000 at 12.33:1 contrast (WCAG AA passes).

Color values

HEX#D9C852
RGBrgb(217, 200, 82)
HSLhsl(52, 64%, 59%)
HSVhsv(52, 62%, 85%)
CMYKcmyk(0%, 7.8%, 62.2%, 14.9%)
CIE-LABlab(79.99, -8.02, 59.43)
CIE-LCHlch(79.99, 59.97, 97.68°)
OKLaboklab(82.48% -0.0267 0.1357)
OKLCHoklch(82.48% 0.138 101.1)
XYZxyz(50.7945, 56.6715, 16.2441)
Luminance0.5667 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D9C852 #5263D9
analogous
#D98452 #D9C852 #A7D952
triadic
#D9C852 #52D9C8 #C852D9
tetradic
#D9C852 #52D984 #5263D9 #D952A7
square
#D9C852 #52D984 #5263D9 #D952A7
split-complementary
#D9C852 #52A7D9 #8452D9
monochromatic
#918320 #C3B02B #D9C852 #E4D884 #EFE8B6

Accessibility & contrast

On white

1.70
#D9C852 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.33
#D9C852 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D9C852
12.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D9C852#FFFFFF#000000##000000
##D9C8521.001.7012.3312.33
#FFFFFF1.701.0021.0021.00
#00000012.3321.001.001.00
##00000012.3321.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #d9c852;
/* rgb */ color: rgb(217, 200, 82);
/* oklch */ color: oklch(82.5% 0.138 101.1);
Tailwind
colors: {
  custom: {
    50: '#e8d887',
    500: '#d9c852',
    950: '#000000',
  },
}
SCSS
$custom: #d9c852;
$custom-light: #e8d887;
$custom-dark: #000000;
JSON
{
  "hex": "#d9c852",
  "rgb": {
    "r": 217,
    "g": 200,
    "b": 82
  },
  "hsl": {
    "h": 52.444,
    "s": 63.981,
    "l": 58.627
  },
  "oklch": {
    "l": 0.8248,
    "c": 0.13826,
    "h": 101.1
  },
  "luminance": 0.56669
}

Semantic roles & 50–950 ramp

primary
#D9C852
secondary
#394596
accent
#56E741
background
#FFFEFC
surface
#FEFBF4
border
#D6D4CE
text
#16140C
muted
#85837F

Preview Lab

Preview with #D9C852

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

Preview Lab → · Contrast checker → · Palette generator →

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