#D8D258#D8D258

#D8D258 is a very light, vivid yellow. Relative luminance 0.614; OKLCH L 84.5% C 0.143 H 106.4°. Best body text is #000000 at 13.28:1 contrast (WCAG AA passes).

Color values

HEX#D8D258
RGBrgb(216, 210, 88)
HSLhsl(57, 62%, 60%)
HSVhsv(57, 59%, 85%)
CMYKcmyk(0%, 2.8%, 59.3%, 15.3%)
CIE-LABlab(82.59, -13.09, 59.65)
CIE-LCHlch(82.59, 61.07, 102.38°)
OKLaboklab(84.54% -0.0404 0.137)
OKLCHoklch(84.54% 0.143 106.4)
XYZxyz(53.1287, 61.3984, 18.2831)
Luminance0.6140 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D8D258 #585ED8
analogous
#D89258 #D8D258 #9ED858
triadic
#D8D258 #58D8D2 #D258D8
tetradic
#D8D258 #58D892 #585ED8 #D8589E
square
#D8D258 #58D892 #585ED8 #D8589E
split-complementary
#D8D258 #589ED8 #9258D8
monochromatic
#938E22 #C5BE2E #D8D258 #E4DF8A #EFEDBB

Accessibility & contrast

On white

1.58
#D8D258 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.28
#D8D258 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D8D258
13.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D8D258#FFFFFF#000000##000000
##D8D2581.001.5813.2813.28
#FFFFFF1.581.0021.0021.00
#00000013.2821.001.001.00
##00000013.2821.001.001.00

Color blindness preview

Protanopia (red-blind)
#E2CB4A
Deuteranopia (green-blind)
#E5D05F
Tritanopia (blue-blind)
#E7C5B8
Achromatopsia (no color)
#CECECE

Design tokens & code

CSS
--color: #d8d258;
/* rgb */ color: rgb(216, 210, 88);
/* oklch */ color: oklch(84.5% 0.143 106.4);
Tailwind
colors: {
  custom: {
    50: '#e7df8c',
    500: '#d8d258',
    950: '#000000',
  },
}
SCSS
$custom: #d8d258;
$custom-light: #e7df8c;
$custom-dark: #000000;
JSON
{
  "hex": "#d8d258",
  "rgb": {
    "r": 216,
    "g": 210,
    "b": 88
  },
  "hsl": {
    "h": 57.188,
    "s": 62.136,
    "l": 59.608
  },
  "oklch": {
    "l": 0.84542,
    "c": 0.1428,
    "h": 106.4
  },
  "luminance": 0.61397
}

Semantic roles & 50–950 ramp

primary
#D8D258
secondary
#3C4098
accent
#4AE543
background
#FFFEFC
surface
#FEFCF4
border
#D6D5CE
text
#16150C
muted
#85847F

Preview Lab

Preview with #D8D258

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

Preview Lab → · Contrast checker → · Palette generator →

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