#D9C951#D9C951

#D9C951 is a very light, vivid yellow. Relative luminance 0.571; OKLCH L 82.7% C 0.140 H 101.7°. Best body text is #000000 at 12.42:1 contrast (WCAG AA passes).

Color values

HEX#D9C951
RGBrgb(217, 201, 81)
HSLhsl(53, 64%, 58%)
HSVhsv(53, 63%, 85%)
CMYKcmyk(0%, 7.4%, 62.7%, 14.9%)
CIE-LABlab(80.25, -8.59, 60.14)
CIE-LCHlch(80.25, 60.75, 98.13°)
OKLaboklab(82.68% -0.0284 0.137)
OKLCHoklch(82.68% 0.14 101.7)
XYZxyz(50.9891, 57.1211, 16.1226)
Luminance0.5712 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D9C951 #5161D9
analogous
#D98551 #D9C951 #A5D951
triadic
#D9C951 #51D9C9 #C951D9
tetradic
#D9C951 #51D985 #5161D9 #D951A5
square
#D9C951 #51D985 #5161D9 #D951A5
split-complementary
#D9C951 #51A5D9 #8551D9
monochromatic
#90831F #C2B02A #D9C951 #E4D983 #EFE8B5

Accessibility & contrast

On white

1.69
#D9C951 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.42
#D9C951 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D9C951
12.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D9C951#FFFFFF#000000##000000
##D9C9511.001.6912.4212.42
#FFFFFF1.691.0021.0021.00
#00000012.4221.001.001.00
##00000012.4221.001.001.00

Color blindness preview

Protanopia (red-blind)
#DAC343
Deuteranopia (green-blind)
#DFCA58
Tritanopia (blue-blind)
#E9BCB0
Achromatopsia (no color)
#C7C7C7

Design tokens & code

CSS
--color: #d9c951;
/* rgb */ color: rgb(217, 201, 81);
/* oklch */ color: oklch(82.7% 0.140 101.7);
Tailwind
colors: {
  custom: {
    50: '#e8d987',
    500: '#d9c951',
    950: '#000000',
  },
}
SCSS
$custom: #d9c951;
$custom-light: #e8d987;
$custom-dark: #000000;
JSON
{
  "hex": "#d9c951",
  "rgb": {
    "r": 217,
    "g": 201,
    "b": 81
  },
  "hsl": {
    "h": 52.941,
    "s": 64.151,
    "l": 58.431
  },
  "oklch": {
    "l": 0.82678,
    "c": 0.13993,
    "h": 101.7
  },
  "luminance": 0.57119
}

Semantic roles & 50–950 ramp

primary
#D9C951
secondary
#394495
accent
#54E741
background
#FFFEFC
surface
#FEFBF3
border
#D6D4CD
text
#16140C
muted
#85837F

Preview Lab

Preview with #D9C951

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

Preview Lab → · Contrast checker → · Palette generator →

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