#D9B951#D9B951

#D9B951 is a light, vivid yellow. Relative luminance 0.500; OKLCH L 79.4% C 0.128 H 92.1°. Best body text is #000000 at 11.01:1 contrast (WCAG AA passes).

Color values

HEX#D9B951
RGBrgb(217, 185, 81)
HSLhsl(46, 64%, 58%)
HSVhsv(46, 63%, 85%)
CMYKcmyk(0%, 14.7%, 62.7%, 14.9%)
CIE-LABlab(76.10, -0.32, 55.63)
CIE-LCHlch(76.10, 55.63, 90.33°)
OKLaboklab(79.39% -0.0047 0.1274)
OKLCHoklch(79.39% 0.128 92.1)
XYZxyz(47.4517, 50.0463, 14.9435)
Luminance0.5004 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D9B951 #5171D9
analogous
#D97551 #D9B951 #B5D951
triadic
#D9B951 #51D9B9 #B951D9
tetradic
#D9B951 #51D975 #5171D9 #D951B5
square
#D9B951 #51D975 #5171D9 #D951B5
split-complementary
#D9B951 #51B5D9 #7551D9
monochromatic
#90761F #C29F2A #D9B951 #E4CD83 #EFE1B5

Accessibility & contrast

On white

1.91
#D9B951 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.01
#D9B951 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D9B951
11.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D9B951#FFFFFF#000000##000000
##D9B9511.001.9111.0111.01
#FFFFFF1.911.0021.0021.00
#00000011.0121.001.001.00
##00000011.0121.001.001.00

Color blindness preview

Protanopia (red-blind)
#CBB646
Deuteranopia (green-blind)
#D3C056
Tritanopia (blue-blind)
#EAABA2
Achromatopsia (no color)
#BCBCBC

Design tokens & code

CSS
--color: #d9b951;
/* rgb */ color: rgb(217, 185, 81);
/* oklch */ color: oklch(79.4% 0.128 92.1);
Tailwind
colors: {
  custom: {
    50: '#e8cd86',
    500: '#d9b951',
    950: '#000000',
  },
}
SCSS
$custom: #d9b951;
$custom-light: #e8cd86;
$custom-dark: #000000;
JSON
{
  "hex": "#d9b951",
  "rgb": {
    "r": 217,
    "g": 185,
    "b": 81
  },
  "hsl": {
    "h": 45.882,
    "s": 64.151,
    "l": 58.431
  },
  "oklch": {
    "l": 0.79392,
    "c": 0.12751,
    "h": 92.1
  },
  "luminance": 0.50044
}

Semantic roles & 50–950 ramp

primary
#D9B951
secondary
#394F95
accent
#68E741
background
#FFFEFB
surface
#FEFAF2
border
#D6D3CC
text
#16130B
muted
#85837E

Preview Lab

Preview with #D9B951

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

Preview Lab → · Contrast checker → · Palette generator →

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