#D9C252#D9C252

#D9C252 is a light, vivid yellow. Relative luminance 0.539; OKLCH L 81.2% C 0.133 H 97.7°. Best body text is #000000 at 11.79:1 contrast (WCAG AA passes).

Color values

HEX#D9C252
RGBrgb(217, 194, 82)
HSLhsl(50, 64%, 59%)
HSVhsv(50, 62%, 85%)
CMYKcmyk(0%, 10.6%, 62.2%, 14.9%)
CIE-LABlab(78.43, -4.94, 57.74)
CIE-LCHlch(78.43, 57.95, 94.89°)
OKLaboklab(81.24% -0.0179 0.1321)
OKLCHoklch(81.24% 0.133 97.7)
XYZxyz(49.4321, 53.9468, 15.7900)
Luminance0.5394 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D9C252 #5269D9
analogous
#D97E52 #D9C252 #ACD952
triadic
#D9C252 #52D9C2 #C252D9
tetradic
#D9C252 #52D97E #5269D9 #D952AC
square
#D9C252 #52D97E #5269D9 #D952AC
split-complementary
#D9C252 #52ACD9 #7E52D9
monochromatic
#917E20 #C3A92B #D9C252 #E4D484 #EFE5B6

Accessibility & contrast

On white

1.78
#D9C252 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.79
#D9C252 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D9C252
11.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D9C252#FFFFFF#000000##000000
##D9C2521.001.7811.7911.79
#FFFFFF1.781.0021.0021.00
#00000011.7921.001.001.00
##00000011.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#D4BE45
Deuteranopia (green-blind)
#DAC558
Tritanopia (blue-blind)
#E9B5AA
Achromatopsia (no color)
#C2C2C2

Design tokens & code

CSS
--color: #d9c252;
/* rgb */ color: rgb(217, 194, 82);
/* oklch */ color: oklch(81.2% 0.133 97.7);
Tailwind
colors: {
  custom: {
    50: '#e8d487',
    500: '#d9c252',
    950: '#000000',
  },
}
SCSS
$custom: #d9c252;
$custom-light: #e8d487;
$custom-dark: #000000;
JSON
{
  "hex": "#d9c252",
  "rgb": {
    "r": 217,
    "g": 194,
    "b": 82
  },
  "hsl": {
    "h": 49.778,
    "s": 63.981,
    "l": 58.627
  },
  "oklch": {
    "l": 0.8124,
    "c": 0.13325,
    "h": 97.7
  },
  "luminance": 0.53944
}

Semantic roles & 50–950 ramp

primary
#D9C252
secondary
#394996
accent
#5DE741
background
#FFFEFC
surface
#FEFBF3
border
#D6D4CD
text
#16140C
muted
#85837F

Preview Lab

Preview with #D9C252

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

Preview Lab → · Contrast checker → · Palette generator →

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