#D8D45B#D8D45B

#D8D45B is a very light, vivid yellow. Relative luminance 0.624; OKLCH L 85.0% C 0.142 H 107.3°. Best body text is #000000 at 13.49:1 contrast (WCAG AA passes).

Color values

HEX#D8D45B
RGBrgb(216, 212, 91)
HSLhsl(58, 62%, 60%)
HSVhsv(58, 58%, 85%)
CMYKcmyk(0%, 1.9%, 57.9%, 15.3%)
CIE-LABlab(83.15, -13.88, 58.95)
CIE-LCHlch(83.15, 60.57, 103.25°)
OKLaboklab(84.99% -0.0423 0.1359)
OKLCHoklch(84.99% 0.142 107.3)
XYZxyz(53.7524, 62.4428, 19.1167)
Luminance0.6244 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D8D45B #5B5FD8
analogous
#D8955B #D8D45B #9DD85B
triadic
#D8D45B #5BD8D4 #D45BD8
tetradic
#D8D45B #5BD895 #5B5FD8 #D85B9D
square
#D8D45B #5BD895 #5B5FD8 #D85B9D
split-complementary
#D8D45B #5B9DD8 #955BD8
monochromatic
#959123 #C7C22F #D8D45B #E4E18C #F0EEBE

Accessibility & contrast

On white

1.56
#D8D45B on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.49
#D8D45B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D8D45B
13.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D8D45B#FFFFFF#000000##000000
##D8D45B1.001.5613.4913.49
#FFFFFF1.561.0021.0021.00
#00000013.4921.001.001.00
##00000013.4921.001.001.00

Color blindness preview

Protanopia (red-blind)
#E4CC4E
Deuteranopia (green-blind)
#E6D162
Tritanopia (blue-blind)
#E6C8BA
Achromatopsia (no color)
#CFCFCF

Design tokens & code

CSS
--color: #d8d45b;
/* rgb */ color: rgb(216, 212, 91);
/* oklch */ color: oklch(85.0% 0.142 107.3);
Tailwind
colors: {
  custom: {
    50: '#e7e18e',
    500: '#d8d45b',
    950: '#000000',
  },
}
SCSS
$custom: #d8d45b;
$custom-light: #e7e18e;
$custom-dark: #000000;
JSON
{
  "hex": "#d8d45b",
  "rgb": {
    "r": 216,
    "g": 212,
    "b": 91
  },
  "hsl": {
    "h": 58.08,
    "s": 61.576,
    "l": 60.196
  },
  "oklch": {
    "l": 0.84993,
    "c": 0.1423,
    "h": 107.3
  },
  "luminance": 0.62441
}

Semantic roles & 50–950 ramp

primary
#D8D45B
secondary
#3D409A
accent
#22C91C
background
#FFFEFC
surface
#FEFCF4
border
#D6D5CE
text
#16150D
muted
#85847F

Preview Lab

Preview with #D8D45B

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

Preview Lab → · Contrast checker → · Palette generator →

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