#D8D840#D8D840

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

Color values

HEX#D8D840
RGBrgb(216, 216, 64)
HSLhsl(60, 66%, 55%)
HSVhsv(60, 70%, 85%)
CMYKcmyk(0%, 0%, 70.4%, 15.3%)
CIE-LABlab(84.01, -17.46, 70.57)
CIE-LCHlch(84.01, 72.70, 103.90°)
OKLaboklab(85.62% -0.0552 0.1564)
OKLCHoklch(85.62% 0.166 109.4)
XYZxyz(53.8021, 64.0824, 14.3845)
Luminance0.6408 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D8D840 #4040D8
analogous
#D88C40 #D8D840 #8CD840
triadic
#D8D840 #40D8D8 #D840D8
tetradic
#D8D840 #40D88C #4040D8 #D8408C
square
#D8D840 #40D88C #4040D8 #D8408C
split-complementary
#D8D840 #408CD8 #8C40D8
monochromatic
#83831B #B6B625 #D8D840 #E2E273 #EDEDA6

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##D8D840#FFFFFF#000000##000000
##D8D8401.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)
#E9CF25
Deuteranopia (green-blind)
#EBD44B
Tritanopia (blue-blind)
#E7CABA
Achromatopsia (no color)
#D1D1D1

Design tokens & code

CSS
--color: #d8d840;
/* rgb */ color: rgb(216, 216, 64);
/* oklch */ color: oklch(85.6% 0.166 109.4);
Tailwind
colors: {
  custom: {
    50: '#e8e37f',
    500: '#d8d840',
    950: '#000000',
  },
}
SCSS
$custom: #d8d840;
$custom-light: #e8e37f;
$custom-dark: #000000;
JSON
{
  "hex": "#d8d840",
  "rgb": {
    "r": 216,
    "g": 216,
    "b": 64
  },
  "hsl": {
    "h": 60,
    "s": 66.087,
    "l": 54.902
  },
  "oklch": {
    "l": 0.85615,
    "c": 0.16582,
    "h": 109.4
  },
  "luminance": 0.64081
}

Semantic roles & 50–950 ramp

primary
#D8D840
secondary
#33338A
accent
#3FE93F
background
#FFFEFB
surface
#FEFCF2
border
#D6D5CC
text
#17150B
muted
#85847E

Preview Lab

Preview with #D8D840

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

Preview Lab → · Contrast checker → · Palette generator →

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