#D9C251#D9C251

#D9C251 is a light, vivid yellow. Relative luminance 0.539; OKLCH L 81.2% C 0.134 H 97.8°. Best body text is #000000 at 11.79:1 contrast (WCAG AA passes).

Color values

HEX#D9C251
RGBrgb(217, 194, 81)
HSLhsl(50, 64%, 58%)
HSVhsv(50, 63%, 85%)
CMYKcmyk(0%, 10.6%, 62.7%, 14.9%)
CIE-LABlab(78.42, -5.00, 58.16)
CIE-LCHlch(78.42, 58.38, 94.91°)
OKLaboklab(81.23% -0.0182 0.1328)
OKLCHoklch(81.23% 0.134 97.8)
XYZxyz(49.3944, 53.9316, 15.5910)
Luminance0.5393 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D9C251 #5168D9
analogous
#D97E51 #D9C251 #ACD951
triadic
#D9C251 #51D9C2 #C251D9
tetradic
#D9C251 #51D97E #5168D9 #D951AC
square
#D9C251 #51D97E #5168D9 #D951AC
split-complementary
#D9C251 #51ACD9 #7E51D9
monochromatic
#907D1F #C2A92A #D9C251 #E4D483 #EFE5B5

Accessibility & contrast

On white

1.78
#D9C251 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.79
#D9C251 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D9C251
11.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D9C251#FFFFFF#000000##000000
##D9C2511.001.7811.7911.79
#FFFFFF1.781.0021.0021.00
#00000011.7921.001.001.00
##00000011.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#D4BD44
Deuteranopia (green-blind)
#DAC557
Tritanopia (blue-blind)
#E9B5AA
Achromatopsia (no color)
#C2C2C2

Design tokens & code

CSS
--color: #d9c251;
/* rgb */ color: rgb(217, 194, 81);
/* oklch */ color: oklch(81.2% 0.134 97.8);
Tailwind
colors: {
  custom: {
    50: '#e8d486',
    500: '#d9c251',
    950: '#000000',
  },
}
SCSS
$custom: #d9c251;
$custom-light: #e8d486;
$custom-dark: #000000;
JSON
{
  "hex": "#d9c251",
  "rgb": {
    "r": 217,
    "g": 194,
    "b": 81
  },
  "hsl": {
    "h": 49.853,
    "s": 64.151,
    "l": 58.431
  },
  "oklch": {
    "l": 0.8123,
    "c": 0.13406,
    "h": 97.8
  },
  "luminance": 0.53929
}

Semantic roles & 50–950 ramp

primary
#D9C251
secondary
#394895
accent
#5DE741
background
#FFFEFB
surface
#FEFBF2
border
#D6D4CC
text
#16140B
muted
#85837E

Preview Lab

Preview with #D9C251

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

Preview Lab → · Contrast checker → · Palette generator →

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