#D8C64A#D8C64A

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

Color values

HEX#D8C64A
RGBrgb(216, 198, 74)
HSLhsl(52, 65%, 57%)
HSVhsv(52, 66%, 85%)
CMYKcmyk(0%, 8.3%, 65.7%, 15.3%)
CIE-LABlab(79.32, -7.90, 62.06)
CIE-LCHlch(79.32, 62.56, 97.26°)
OKLaboklab(81.9% -0.0272 0.1401)
OKLCHoklch(81.9% 0.143 101)
XYZxyz(49.7511, 55.4836, 14.5660)
Luminance0.5548 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D8C64A #4A5CD8
analogous
#D87F4A #D8C64A #A3D84A
triadic
#D8C64A #4AD8C6 #C64AD8
tetradic
#D8C64A #4AD87F #4A5CD8 #D84AA3
square
#D8C64A #4AD87F #4A5CD8 #D84AA3
split-complementary
#D8C64A #4AA3D8 #7F4AD8
monochromatic
#8A7C1E #BCAA29 #D8C64A #E3D67C #EEE6AF

Accessibility & contrast

On white

1.74
#D8C64A on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.10
#D8C64A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D8C64A
12.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D8C64A#FFFFFF#000000##000000
##D8C64A1.001.7412.1012.10
#FFFFFF1.741.0021.0021.00
#00000012.1021.001.001.00
##00000012.1021.001.001.00

Color blindness preview

Protanopia (red-blind)
#D8C03A
Deuteranopia (green-blind)
#DDC851
Tritanopia (blue-blind)
#E8B8AC
Achromatopsia (no color)
#C4C4C4

Design tokens & code

CSS
--color: #d8c64a;
/* rgb */ color: rgb(216, 198, 74);
/* oklch */ color: oklch(81.9% 0.143 101.0);
Tailwind
colors: {
  custom: {
    50: '#e7d783',
    500: '#d8c64a',
    950: '#000000',
  },
}
SCSS
$custom: #d8c64a;
$custom-light: #e7d783;
$custom-dark: #000000;
JSON
{
  "hex": "#d8c64a",
  "rgb": {
    "r": 216,
    "g": 198,
    "b": 74
  },
  "hsl": {
    "h": 52.394,
    "s": 64.545,
    "l": 56.863
  },
  "oklch": {
    "l": 0.81902,
    "c": 0.14266,
    "h": 101
  },
  "luminance": 0.55482
}

Semantic roles & 50–950 ramp

primary
#D8C64A
secondary
#364290
accent
#55E840
background
#FFFEFB
surface
#FEFBF2
border
#D6D4CC
text
#16140B
muted
#85837E

Preview Lab

Preview with #D8C64A

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

Preview Lab → · Contrast checker → · Palette generator →

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