#D9C451#D9C451

#D9C451 is a light, vivid yellow. Relative luminance 0.548; OKLCH L 81.6% C 0.136 H 99.0°. Best body text is #000000 at 11.97:1 contrast (WCAG AA passes).

Color values

HEX#D9C451
RGBrgb(217, 196, 81)
HSLhsl(51, 64%, 58%)
HSVhsv(51, 63%, 85%)
CMYKcmyk(0%, 9.7%, 62.7%, 14.9%)
CIE-LABlab(78.94, -6.03, 58.73)
CIE-LCHlch(78.94, 59.04, 95.86°)
OKLaboklab(81.64% -0.0211 0.134)
OKLCHoklch(81.64% 0.136 99)
XYZxyz(49.8425, 54.8279, 15.7404)
Luminance0.5483 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D9C451 #5166D9
analogous
#D98051 #D9C451 #AAD951
triadic
#D9C451 #51D9C4 #C451D9
tetradic
#D9C451 #51D980 #5166D9 #D951AA
square
#D9C451 #51D980 #5166D9 #D951AA
split-complementary
#D9C451 #51AAD9 #8051D9
monochromatic
#907F1F #C2AB2A #D9C451 #E4D583 #EFE6B5

Accessibility & contrast

On white

1.76
#D9C451 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.97
#D9C451 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D9C451
11.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D9C451#FFFFFF#000000##000000
##D9C4511.001.7611.9711.97
#FFFFFF1.761.0021.0021.00
#00000011.9721.001.001.00
##00000011.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#D6BF44
Deuteranopia (green-blind)
#DBC757
Tritanopia (blue-blind)
#E9B7AC
Achromatopsia (no color)
#C3C3C3

Design tokens & code

CSS
--color: #d9c451;
/* rgb */ color: rgb(217, 196, 81);
/* oklch */ color: oklch(81.6% 0.136 99.0);
Tailwind
colors: {
  custom: {
    50: '#e8d587',
    500: '#d9c451',
    950: '#000000',
  },
}
SCSS
$custom: #d9c451;
$custom-light: #e8d587;
$custom-dark: #000000;
JSON
{
  "hex": "#d9c451",
  "rgb": {
    "r": 217,
    "g": 196,
    "b": 81
  },
  "hsl": {
    "h": 50.735,
    "s": 64.151,
    "l": 58.431
  },
  "oklch": {
    "l": 0.81642,
    "c": 0.13567,
    "h": 99
  },
  "luminance": 0.54826
}

Semantic roles & 50–950 ramp

primary
#D9C451
secondary
#394795
accent
#5AE741
background
#FFFEFC
surface
#FEFBF3
border
#D6D4CD
text
#16140C
muted
#85837F

Preview Lab

Preview with #D9C451

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

Preview Lab → · Contrast checker → · Palette generator →

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