#D8D842#D8D842

#D8D842 is a very light, vivid yellow. Relative luminance 0.641; OKLCH L 85.6% C 0.165 H 109.4°. Best body text is #000000 at 13.82:1 contrast (WCAG AA passes).

Color values

HEX#D8D842
RGBrgb(216, 216, 66)
HSLhsl(60, 66%, 55%)
HSVhsv(60, 69%, 85%)
CMYKcmyk(0%, 0%, 69.4%, 15.3%)
CIE-LABlab(84.02, -17.37, 69.87)
CIE-LCHlch(84.02, 72.00, 103.96°)
OKLaboklab(85.63% -0.0547 0.1552)
OKLCHoklch(85.63% 0.165 109.4)
XYZxyz(53.8600, 64.1056, 14.6897)
Luminance0.6410 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D8D842 #4242D8
analogous
#D88D42 #D8D842 #8DD842
triadic
#D8D842 #42D8D8 #D842D8
tetradic
#D8D842 #42D88D #4242D8 #D8428D
square
#D8D842 #42D88D #4242D8 #D8428D
split-complementary
#D8D842 #428DD8 #8D42D8
monochromatic
#84841B #B7B726 #D8D842 #E2E275 #EDEDA7

Accessibility & contrast

On white

1.52
#D8D842 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.82
#D8D842 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D8D842
13.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D8D842#FFFFFF#000000##000000
##D8D8421.001.5213.8213.82
#FFFFFF1.521.0021.0021.00
#00000013.8221.001.001.00
##00000013.8221.001.001.00

Color blindness preview

Protanopia (red-blind)
#E9CF28
Deuteranopia (green-blind)
#EBD44D
Tritanopia (blue-blind)
#E7CABB
Achromatopsia (no color)
#D2D2D2

Design tokens & code

CSS
--color: #d8d842;
/* rgb */ color: rgb(216, 216, 66);
/* oklch */ color: oklch(85.6% 0.165 109.4);
Tailwind
colors: {
  custom: {
    50: '#e8e380',
    500: '#d8d842',
    950: '#000000',
  },
}
SCSS
$custom: #d8d842;
$custom-light: #e8e380;
$custom-dark: #000000;
JSON
{
  "hex": "#d8d842",
  "rgb": {
    "r": 216,
    "g": 216,
    "b": 66
  },
  "hsl": {
    "h": 60,
    "s": 65.789,
    "l": 55.294
  },
  "oklch": {
    "l": 0.85628,
    "c": 0.1646,
    "h": 109.4
  },
  "luminance": 0.64104
}

Semantic roles & 50–950 ramp

primary
#D8D842
secondary
#33338B
accent
#3FE93F
background
#FFFEFB
surface
#FEFCF2
border
#D6D5CC
text
#16150B
muted
#85847E

Preview Lab

Preview with #D8D842

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

Preview Lab → · Contrast checker → · Palette generator →

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