#D8D954#D8D954

#D8D954 is a very light, vivid yellow. Relative luminance 0.649; OKLCH L 86.0% C 0.153 H 109.6°. Best body text is #000000 at 13.97:1 contrast (WCAG AA passes).

Color values

HEX#D8D954
RGBrgb(216, 217, 84)
HSLhsl(60, 64%, 59%)
HSVhsv(60, 61%, 85%)
CMYKcmyk(0.5%, 0%, 61.3%, 14.9%)
CIE-LABlab(84.41, -16.84, 63.32)
CIE-LCHlch(84.41, 65.52, 104.89°)
OKLaboklab(85.98% -0.0514 0.1442)
OKLCHoklch(85.98% 0.153 109.6)
XYZxyz(54.7337, 64.8662, 18.0230)
Luminance0.6486 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D8D954 #5554D9
analogous
#D99854 #D8D954 #96D954
triadic
#D8D954 #54D8D9 #D954D8
tetradic
#D8D954 #54D998 #5554D9 #D95496
square
#D8D954 #54D998 #5554D9 #D95496
split-complementary
#D8D954 #5496D9 #9854D9
monochromatic
#919220 #C3C42C #D8D954 #E3E486 #EFEFB8

Accessibility & contrast

On white

1.50
#D8D954 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.97
#D8D954 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D8D954
13.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D8D954#FFFFFF#000000##000000
##D8D9541.001.5013.9713.97
#FFFFFF1.501.0021.0021.00
#00000013.9721.001.001.00
##00000013.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#E9D044
Deuteranopia (green-blind)
#EBD55C
Tritanopia (blue-blind)
#E6CCBD
Achromatopsia (no color)
#D3D3D3

Design tokens & code

CSS
--color: #d8d954;
/* rgb */ color: rgb(216, 217, 84);
/* oklch */ color: oklch(86.0% 0.153 109.6);
Tailwind
colors: {
  custom: {
    50: '#e7e48a',
    500: '#d8d954',
    950: '#000000',
  },
}
SCSS
$custom: #d8d954;
$custom-light: #e7e48a;
$custom-dark: #000000;
JSON
{
  "hex": "#d8d954",
  "rgb": {
    "r": 216,
    "g": 217,
    "b": 84
  },
  "hsl": {
    "h": 60.451,
    "s": 63.636,
    "l": 59.02
  },
  "oklch": {
    "l": 0.85983,
    "c": 0.15309,
    "h": 109.6
  },
  "luminance": 0.64865
}

Semantic roles & 50–950 ramp

primary
#D8D954
secondary
#3B3A97
accent
#41E742
background
#FFFEFC
surface
#FEFCF4
border
#D6D5CE
text
#16150C
muted
#85847F

Preview Lab

Preview with #D8D954

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

Preview Lab → · Contrast checker → · Palette generator →

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