#D8C842#D8C842

#D8C842 is a very light, vivid yellow. Relative luminance 0.563; OKLCH L 82.3% C 0.150 H 102.4°. Best body text is #000000 at 12.26:1 contrast (WCAG AA passes).

Color values

HEX#D8C842
RGBrgb(216, 200, 66)
HSLhsl(54, 66%, 55%)
HSVhsv(54, 69%, 85%)
CMYKcmyk(0%, 7.4%, 69.4%, 15.3%)
CIE-LABlab(79.79, -9.35, 65.69)
CIE-LCHlch(79.79, 66.36, 98.10°)
OKLaboklab(82.25% -0.0322 0.1464)
OKLCHoklch(82.25% 0.15 102.4)
XYZxyz(49.9587, 56.3029, 13.3892)
Luminance0.5630 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D8C842 #4252D8
analogous
#D87D42 #D8C842 #9DD842
triadic
#D8C842 #42D8C8 #C842D8
tetradic
#D8C842 #42D87D #4252D8 #D8429D
square
#D8C842 #42D87D #4252D8 #D8429D
split-complementary
#D8C842 #429DD8 #7D42D8
monochromatic
#84791B #B7A826 #D8C842 #E2D775 #EDE6A7

Accessibility & contrast

On white

1.71
#D8C842 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.26
#D8C842 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D8C842
12.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D8C842#FFFFFF#000000##000000
##D8C8421.001.7112.2612.26
#FFFFFF1.711.0021.0021.00
#00000012.2621.001.001.00
##00000012.2621.001.001.00

Color blindness preview

Protanopia (red-blind)
#DAC22E
Deuteranopia (green-blind)
#DFC94B
Tritanopia (blue-blind)
#E8BAAD
Achromatopsia (no color)
#C6C6C6

Design tokens & code

CSS
--color: #d8c842;
/* rgb */ color: rgb(216, 200, 66);
/* oklch */ color: oklch(82.3% 0.150 102.4);
Tailwind
colors: {
  custom: {
    50: '#e8d87e',
    500: '#d8c842',
    950: '#000000',
  },
}
SCSS
$custom: #d8c842;
$custom-light: #e8d87e;
$custom-dark: #000000;
JSON
{
  "hex": "#d8c842",
  "rgb": {
    "r": 216,
    "g": 200,
    "b": 66
  },
  "hsl": {
    "h": 53.6,
    "s": 65.789,
    "l": 55.294
  },
  "oklch": {
    "l": 0.82254,
    "c": 0.1499,
    "h": 102.4
  },
  "luminance": 0.56301
}

Semantic roles & 50–950 ramp

primary
#D8C842
secondary
#333D8B
accent
#51E93F
background
#FFFEFB
surface
#FEFBF2
border
#D6D4CC
text
#17140A
muted
#85837D

Preview Lab

Preview with #D8C842

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

Preview Lab → · Contrast checker → · Palette generator →

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