#D8D040#D8D040

#D8D040 is a very light, vivid yellow. Relative luminance 0.601; OKLCH L 83.9% C 0.158 H 106.2°. Best body text is #000000 at 13.02:1 contrast (WCAG AA passes).

Color values

HEX#D8D040
RGBrgb(216, 208, 64)
HSLhsl(57, 66%, 55%)
HSVhsv(57, 70%, 85%)
CMYKcmyk(0%, 3.7%, 70.4%, 15.3%)
CIE-LABlab(81.88, -13.49, 68.50)
CIE-LCHlch(81.88, 69.82, 101.14°)
OKLaboklab(83.92% -0.044 0.152)
OKLCHoklch(83.92% 0.158 106.2)
XYZxyz(51.8022, 60.0827, 13.7179)
Luminance0.6008 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D8D040 #4048D8
analogous
#D88440 #D8D040 #94D840
triadic
#D8D040 #40D8D0 #D040D8
tetradic
#D8D040 #40D884 #4048D8 #D84094
square
#D8D040 #40D884 #4048D8 #D84094
split-complementary
#D8D040 #4094D8 #8440D8
monochromatic
#837D1B #B6AE25 #D8D040 #E2DD73 #EDE9A6

Accessibility & contrast

On white

1.61
#D8D040 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.02
#D8D040 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D8D040
13.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D8D040#FFFFFF#000000##000000
##D8D0401.001.6113.0213.02
#FFFFFF1.611.0021.0021.00
#00000013.0221.001.001.00
##00000013.0221.001.001.00

Color blindness preview

Protanopia (red-blind)
#E2C828
Deuteranopia (green-blind)
#E5CE4A
Tritanopia (blue-blind)
#E8C2B4
Achromatopsia (no color)
#CCCCCC

Design tokens & code

CSS
--color: #d8d040;
/* rgb */ color: rgb(216, 208, 64);
/* oklch */ color: oklch(83.9% 0.158 106.2);
Tailwind
colors: {
  custom: {
    50: '#e8de7e',
    500: '#d8d040',
    950: '#000000',
  },
}
SCSS
$custom: #d8d040;
$custom-light: #e8de7e;
$custom-dark: #000000;
JSON
{
  "hex": "#d8d040",
  "rgb": {
    "r": 216,
    "g": 208,
    "b": 64
  },
  "hsl": {
    "h": 56.842,
    "s": 66.087,
    "l": 54.902
  },
  "oklch": {
    "l": 0.83919,
    "c": 0.15824,
    "h": 106.2
  },
  "luminance": 0.60081
}

Semantic roles & 50–950 ramp

primary
#D8D040
secondary
#33378A
accent
#48E93F
background
#FFFEFB
surface
#FEFCF2
border
#D6D5CC
text
#17150A
muted
#85847D

Preview Lab

Preview with #D8D040

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

Preview Lab → · Contrast checker → · Palette generator →

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