#D9C351#D9C351

#D9C351 is a light, vivid yellow. Relative luminance 0.544; OKLCH L 81.4% C 0.135 H 98.4°. Best body text is #000000 at 11.88:1 contrast (WCAG AA passes).

Color values

HEX#D9C351
RGBrgb(217, 195, 81)
HSLhsl(50, 64%, 58%)
HSVhsv(50, 63%, 85%)
CMYKcmyk(0%, 10.1%, 62.7%, 14.9%)
CIE-LABlab(78.68, -5.52, 58.45)
CIE-LCHlch(78.68, 58.70, 95.39°)
OKLaboklab(81.44% -0.0196 0.1334)
OKLCHoklch(81.44% 0.135 98.4)
XYZxyz(49.6177, 54.3783, 15.6655)
Luminance0.5438 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D9C351 #5167D9
analogous
#D97F51 #D9C351 #ABD951
triadic
#D9C351 #51D9C3 #C351D9
tetradic
#D9C351 #51D97F #5167D9 #D951AB
square
#D9C351 #51D97F #5167D9 #D951AB
split-complementary
#D9C351 #51ABD9 #7F51D9
monochromatic
#907E1F #C2AA2A #D9C351 #E4D483 #EFE6B5

Accessibility & contrast

On white

1.77
#D9C351 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.88
#D9C351 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D9C351
11.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D9C351#FFFFFF#000000##000000
##D9C3511.001.7711.8811.88
#FFFFFF1.771.0021.0021.00
#00000011.8821.001.001.00
##00000011.8821.001.001.00

Color blindness preview

Protanopia (red-blind)
#D5BE44
Deuteranopia (green-blind)
#DBC657
Tritanopia (blue-blind)
#E9B6AB
Achromatopsia (no color)
#C3C3C3

Design tokens & code

CSS
--color: #d9c351;
/* rgb */ color: rgb(217, 195, 81);
/* oklch */ color: oklch(81.4% 0.135 98.4);
Tailwind
colors: {
  custom: {
    50: '#e8d487',
    500: '#d9c351',
    950: '#000000',
  },
}
SCSS
$custom: #d9c351;
$custom-light: #e8d487;
$custom-dark: #000000;
JSON
{
  "hex": "#d9c351",
  "rgb": {
    "r": 217,
    "g": 195,
    "b": 81
  },
  "hsl": {
    "h": 50.294,
    "s": 64.151,
    "l": 58.431
  },
  "oklch": {
    "l": 0.81436,
    "c": 0.13486,
    "h": 98.4
  },
  "luminance": 0.54376
}

Semantic roles & 50–950 ramp

primary
#D9C351
secondary
#394895
accent
#5CE741
background
#FFFEFC
surface
#FEFBF3
border
#D6D4CD
text
#16140B
muted
#85837E

Preview Lab

Preview with #D9C351

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

Preview Lab → · Contrast checker → · Palette generator →

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