#D8C642#D8C642

#D8C642 is a light, vivid yellow. Relative luminance 0.554; OKLCH L 81.8% C 0.148 H 101.4°. Best body text is #000000 at 12.08:1 contrast (WCAG AA passes).

Color values

HEX#D8C642
RGBrgb(216, 198, 66)
HSLhsl(53, 66%, 55%)
HSVhsv(53, 69%, 85%)
CMYKcmyk(0%, 8.3%, 69.4%, 15.3%)
CIE-LABlab(79.26, -8.34, 65.17)
CIE-LCHlch(79.26, 65.70, 97.29°)
OKLaboklab(81.84% -0.0293 0.1453)
OKLCHoklch(81.84% 0.148 101.4)
XYZxyz(49.4985, 55.3826, 13.2358)
Luminance0.5538 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D8C642 #4254D8
analogous
#D87B42 #D8C642 #9FD842
triadic
#D8C642 #42D8C6 #C642D8
tetradic
#D8C642 #42D87B #4254D8 #D8429F
square
#D8C642 #42D87B #4254D8 #D8429F
split-complementary
#D8C642 #429FD8 #7B42D8
monochromatic
#84781B #B7A626 #D8C642 #E2D575 #EDE5A7

Accessibility & contrast

On white

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

On black

12.08
#D8C642 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D8C642
12.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D8C642#FFFFFF#000000##000000
##D8C6421.001.7412.0812.08
#FFFFFF1.741.0021.0021.00
#00000012.0821.001.001.00
##00000012.0821.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #d8c642;
/* rgb */ color: rgb(216, 198, 66);
/* oklch */ color: oklch(81.8% 0.148 101.4);
Tailwind
colors: {
  custom: {
    50: '#e8d67e',
    500: '#d8c642',
    950: '#000000',
  },
}
SCSS
$custom: #d8c642;
$custom-light: #e8d67e;
$custom-dark: #000000;
JSON
{
  "hex": "#d8c642",
  "rgb": {
    "r": 216,
    "g": 198,
    "b": 66
  },
  "hsl": {
    "h": 52.8,
    "s": 65.789,
    "l": 55.294
  },
  "oklch": {
    "l": 0.81838,
    "c": 0.14822,
    "h": 101.4
  },
  "luminance": 0.5538
}

Semantic roles & 50–950 ramp

primary
#D8C642
secondary
#333E8B
accent
#53E93F
background
#FFFEFB
surface
#FEFBF2
border
#D6D4CC
text
#17140A
muted
#85837D

Preview Lab

Preview with #D8C642

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

Preview Lab → · Contrast checker → · Palette generator →

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