#D9C151#D9C151

#D9C151 is a light, vivid yellow. Relative luminance 0.535; OKLCH L 81.0% C 0.133 H 97.2°. Best body text is #000000 at 11.70:1 contrast (WCAG AA passes).

Color values

HEX#D9C151
RGBrgb(217, 193, 81)
HSLhsl(49, 64%, 58%)
HSVhsv(49, 63%, 85%)
CMYKcmyk(0%, 11.1%, 62.7%, 14.9%)
CIE-LABlab(78.16, -4.48, 57.88)
CIE-LCHlch(78.16, 58.05, 94.43°)
OKLaboklab(81.02% -0.0167 0.1322)
OKLCHoklch(81.02% 0.133 97.2)
XYZxyz(49.1726, 53.4880, 15.5171)
Luminance0.5349 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D9C151 #5169D9
analogous
#D97D51 #D9C151 #ADD951
triadic
#D9C151 #51D9C1 #C151D9
tetradic
#D9C151 #51D97D #5169D9 #D951AD
square
#D9C151 #51D97D #5169D9 #D951AD
split-complementary
#D9C151 #51ADD9 #7D51D9
monochromatic
#907C1F #C2A82A #D9C151 #E4D383 #EFE5B5

Accessibility & contrast

On white

1.80
#D9C151 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.70
#D9C151 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D9C151
11.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D9C151#FFFFFF#000000##000000
##D9C1511.001.8011.7011.70
#FFFFFF1.801.0021.0021.00
#00000011.7021.001.001.00
##00000011.7021.001.001.00

Color blindness preview

Protanopia (red-blind)
#D3BD44
Deuteranopia (green-blind)
#D9C557
Tritanopia (blue-blind)
#E9B4A9
Achromatopsia (no color)
#C1C1C1

Design tokens & code

CSS
--color: #d9c151;
/* rgb */ color: rgb(217, 193, 81);
/* oklch */ color: oklch(81.0% 0.133 97.2);
Tailwind
colors: {
  custom: {
    50: '#e8d386',
    500: '#d9c151',
    950: '#000000',
  },
}
SCSS
$custom: #d9c151;
$custom-light: #e8d386;
$custom-dark: #000000;
JSON
{
  "hex": "#d9c151",
  "rgb": {
    "r": 217,
    "g": 193,
    "b": 81
  },
  "hsl": {
    "h": 49.412,
    "s": 64.151,
    "l": 58.431
  },
  "oklch": {
    "l": 0.81024,
    "c": 0.13327,
    "h": 97.2
  },
  "luminance": 0.53486
}

Semantic roles & 50–950 ramp

primary
#D9C151
secondary
#394995
accent
#5EE741
background
#FFFEFB
surface
#FEFBF2
border
#D6D4CC
text
#16140B
muted
#85837E

Preview Lab

Preview with #D9C151

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

Preview Lab → · Contrast checker → · Palette generator →

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