#D8D158#D8D158

#D8D158 is a very light, vivid yellow. Relative luminance 0.609; OKLCH L 84.3% C 0.142 H 106.0°. Best body text is #000000 at 13.18:1 contrast (WCAG AA passes).

Color values

HEX#D8D158
RGBrgb(216, 209, 88)
HSLhsl(57, 62%, 60%)
HSVhsv(57, 59%, 85%)
CMYKcmyk(0%, 3.2%, 59.3%, 15.3%)
CIE-LABlab(82.33, -12.59, 59.36)
CIE-LCHlch(82.33, 60.68, 101.97°)
OKLaboklab(84.33% -0.039 0.1363)
OKLCHoklch(84.33% 0.142 106)
XYZxyz(52.8826, 60.9062, 18.2010)
Luminance0.6090 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D8D158 #585FD8
analogous
#D89158 #D8D158 #9FD858
triadic
#D8D158 #58D8D1 #D158D8
tetradic
#D8D158 #58D891 #585FD8 #D8589F
square
#D8D158 #58D891 #585FD8 #D8589F
split-complementary
#D8D158 #589FD8 #9158D8
monochromatic
#938D22 #C5BD2E #D8D158 #E4DF8A #EFECBB

Accessibility & contrast

On white

1.59
#D8D158 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.18
#D8D158 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D8D158
13.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D8D158#FFFFFF#000000##000000
##D8D1581.001.5913.1813.18
#FFFFFF1.591.0021.0021.00
#00000013.1821.001.001.00
##00000013.1821.001.001.00

Color blindness preview

Protanopia (red-blind)
#E1CA4A
Deuteranopia (green-blind)
#E4CF5F
Tritanopia (blue-blind)
#E7C4B7
Achromatopsia (no color)
#CDCDCD

Design tokens & code

CSS
--color: #d8d158;
/* rgb */ color: rgb(216, 209, 88);
/* oklch */ color: oklch(84.3% 0.142 106.0);
Tailwind
colors: {
  custom: {
    50: '#e7de8c',
    500: '#d8d158',
    950: '#000000',
  },
}
SCSS
$custom: #d8d158;
$custom-light: #e7de8c;
$custom-dark: #000000;
JSON
{
  "hex": "#d8d158",
  "rgb": {
    "r": 216,
    "g": 209,
    "b": 88
  },
  "hsl": {
    "h": 56.719,
    "s": 62.136,
    "l": 59.608
  },
  "oklch": {
    "l": 0.84331,
    "c": 0.1418,
    "h": 106
  },
  "luminance": 0.60904
}

Semantic roles & 50–950 ramp

primary
#D8D158
secondary
#3C4198
accent
#4BE543
background
#FFFEFC
surface
#FEFCF4
border
#D6D5CE
text
#16150C
muted
#85847F

Preview Lab

Preview with #D8D158

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

Preview Lab → · Contrast checker → · Palette generator →

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