#D8C651#D8C651

#D8C651 is a light, vivid yellow. Relative luminance 0.556; OKLCH L 82.0% C 0.137 H 100.6°. Best body text is #000000 at 12.12:1 contrast (WCAG AA passes).

Color values

HEX#D8C651
RGBrgb(216, 198, 81)
HSLhsl(52, 63%, 58%)
HSVhsv(52, 63%, 85%)
CMYKcmyk(0%, 8.3%, 62.5%, 15.3%)
CIE-LABlab(79.38, -7.48, 59.17)
CIE-LCHlch(79.38, 59.64, 97.20°)
OKLaboklab(81.97% -0.0252 0.135)
OKLCHoklch(81.97% 0.137 100.6)
XYZxyz(50.0002, 55.5833, 15.8779)
Luminance0.5558 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D8C651 #5163D8
analogous
#D88251 #D8C651 #A6D851
triadic
#D8C651 #51D8C6 #C651D8
tetradic
#D8C651 #51D882 #5163D8 #D851A6
square
#D8C651 #51D882 #5163D8 #D851A6
split-complementary
#D8C651 #51A6D8 #8251D8
monochromatic
#8F8020 #C1AD2B #D8C651 #E3D683 #EEE7B5

Accessibility & contrast

On white

1.73
#D8C651 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.12
#D8C651 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D8C651
12.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D8C651#FFFFFF#000000##000000
##D8C6511.001.7312.1212.12
#FFFFFF1.731.0021.0021.00
#00000012.1221.001.001.00
##00000012.1221.001.001.00

Color blindness preview

Protanopia (red-blind)
#D7C143
Deuteranopia (green-blind)
#DDC857
Tritanopia (blue-blind)
#E8B9AD
Achromatopsia (no color)
#C5C5C5

Design tokens & code

CSS
--color: #d8c651;
/* rgb */ color: rgb(216, 198, 81);
/* oklch */ color: oklch(82.0% 0.137 100.6);
Tailwind
colors: {
  custom: {
    50: '#e7d787',
    500: '#d8c651',
    950: '#000000',
  },
}
SCSS
$custom: #d8c651;
$custom-light: #e7d787;
$custom-dark: #000000;
JSON
{
  "hex": "#d8c651",
  "rgb": {
    "r": 216,
    "g": 198,
    "b": 81
  },
  "hsl": {
    "h": 52,
    "s": 63.38,
    "l": 58.235
  },
  "oklch": {
    "l": 0.81966,
    "c": 0.13732,
    "h": 100.6
  },
  "luminance": 0.55581
}

Semantic roles & 50–950 ramp

primary
#D8C651
secondary
#394594
accent
#57E641
background
#FFFEFC
surface
#FEFBF3
border
#D6D4CD
text
#16140C
muted
#85837F

Preview Lab

Preview with #D8C651

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

Preview Lab → · Contrast checker → · Palette generator →

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