#D8D54F#D8D54F

#D8D54F is a very light, vivid yellow. Relative luminance 0.628; OKLCH L 85.1% C 0.153 H 108.0°. Best body text is #000000 at 13.55:1 contrast (WCAG AA passes).

Color values

HEX#D8D54F
RGBrgb(216, 213, 79)
HSLhsl(59, 64%, 58%)
HSVhsv(59, 63%, 85%)
CMYKcmyk(0%, 1.4%, 63.4%, 15.3%)
CIE-LABlab(83.31, -15.17, 64.20)
CIE-LCHlch(83.31, 65.96, 103.30°)
OKLaboklab(85.09% -0.0473 0.1453)
OKLCHoklch(85.09% 0.153 108)
XYZxyz(53.5262, 62.7536, 16.6887)
Luminance0.6275 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D8D54F #4F52D8
analogous
#D8904F #D8D54F #96D84F
triadic
#D8D54F #4FD8D5 #D54FD8
tetradic
#D8D54F #4FD890 #4F52D8 #D84F96
square
#D8D54F #4FD890 #4F52D8 #D84F96
split-complementary
#D8D54F #4F96D8 #904FD8
monochromatic
#8D8B1F #BFBC2A #D8D54F #E3E181 #EEEDB3

Accessibility & contrast

On white

1.55
#D8D54F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.55
#D8D54F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D8D54F
13.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D8D54F#FFFFFF#000000##000000
##D8D54F1.001.5513.5513.55
#FFFFFF1.551.0021.0021.00
#00000013.5521.001.001.00
##00000013.5521.001.001.00

Color blindness preview

Protanopia (red-blind)
#E6CD3E
Deuteranopia (green-blind)
#E8D257
Tritanopia (blue-blind)
#E7C8B9
Achromatopsia (no color)
#D0D0D0

Design tokens & code

CSS
--color: #d8d54f;
/* rgb */ color: rgb(216, 213, 79);
/* oklch */ color: oklch(85.1% 0.153 108.0);
Tailwind
colors: {
  custom: {
    50: '#e7e187',
    500: '#d8d54f',
    950: '#000000',
  },
}
SCSS
$custom: #d8d54f;
$custom-light: #e7e187;
$custom-dark: #000000;
JSON
{
  "hex": "#d8d54f",
  "rgb": {
    "r": 216,
    "g": 213,
    "b": 79
  },
  "hsl": {
    "h": 58.686,
    "s": 63.721,
    "l": 57.843
  },
  "oklch": {
    "l": 0.85092,
    "c": 0.15282,
    "h": 108
  },
  "luminance": 0.62752
}

Semantic roles & 50–950 ramp

primary
#D8D54F
secondary
#383A93
accent
#45E741
background
#FFFEFC
surface
#FEFCF4
border
#D6D5CE
text
#16150C
muted
#85847F

Preview Lab

Preview with #D8D54F

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

Preview Lab → · Contrast checker → · Palette generator →

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