#D8C64E#D8C64E

#D8C64E is a light, vivid yellow. Relative luminance 0.555; OKLCH L 81.9% C 0.140 H 100.8°. Best body text is #000000 at 12.11:1 contrast (WCAG AA passes).

Color values

HEX#D8C64E
RGBrgb(216, 198, 78)
HSLhsl(52, 64%, 58%)
HSVhsv(52, 64%, 85%)
CMYKcmyk(0%, 8.3%, 63.9%, 15.3%)
CIE-LABlab(79.35, -7.66, 60.42)
CIE-LCHlch(79.35, 60.91, 97.23°)
OKLaboklab(81.94% -0.0261 0.1372)
OKLCHoklch(81.94% 0.14 100.8)
XYZxyz(49.8902, 55.5393, 15.2985)
Luminance0.5554 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D8C64E #4E60D8
analogous
#D8814E #D8C64E #A5D84E
triadic
#D8C64E #4ED8C6 #C64ED8
tetradic
#D8C64E #4ED881 #4E60D8 #D84EA5
square
#D8C64E #4ED881 #4E60D8 #D84EA5
split-complementary
#D8C64E #4EA5D8 #814ED8
monochromatic
#8D7E1F #BFAB2A #D8C64E #E3D680 #EEE6B2

Accessibility & contrast

On white

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

On black

12.11
#D8C64E on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D8C64E
12.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D8C64E#FFFFFF#000000##000000
##D8C64E1.001.7312.1112.11
#FFFFFF1.731.0021.0021.00
#00000012.1121.001.001.00
##00000012.1121.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #d8c64e;
/* rgb */ color: rgb(216, 198, 78);
/* oklch */ color: oklch(81.9% 0.140 100.8);
Tailwind
colors: {
  custom: {
    50: '#e7d785',
    500: '#d8c64e',
    950: '#000000',
  },
}
SCSS
$custom: #d8c64e;
$custom-light: #e7d785;
$custom-dark: #000000;
JSON
{
  "hex": "#d8c64e",
  "rgb": {
    "r": 216,
    "g": 198,
    "b": 78
  },
  "hsl": {
    "h": 52.174,
    "s": 63.889,
    "l": 57.647
  },
  "oklch": {
    "l": 0.81937,
    "c": 0.13966,
    "h": 100.8
  },
  "luminance": 0.55537
}

Semantic roles & 50–950 ramp

primary
#D8C64E
secondary
#384492
accent
#57E741
background
#FFFEFB
surface
#FEFBF2
border
#D6D4CC
text
#16140B
muted
#85837E

Preview Lab

Preview with #D8C64E

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

Preview Lab → · Contrast checker → · Palette generator →

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