#D8D57F#D8D57F

#D8D57F is a very light, moderate yellow. Relative luminance 0.637; OKLCH L 85.7% C 0.108 H 106.7°. Best body text is #000000 at 13.74:1 contrast (WCAG AA passes).

Color values

HEX#D8D57F
RGBrgb(216, 213, 127)
HSLhsl(58, 53%, 67%)
HSVhsv(58, 41%, 85%)
CMYKcmyk(0%, 1.4%, 41.2%, 15.3%)
CIE-LABlab(83.82, -11.23, 42.80)
CIE-LCHlch(83.82, 44.25, 104.70°)
OKLaboklab(85.66% -0.0312 0.1037)
OKLCHoklch(85.66% 0.108 106.7)
XYZxyz(55.9449, 63.7210, 29.4269)
Luminance0.6372 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D8D57F #7F82D8
analogous
#D8A97F #D8D57F #AED87F
triadic
#D8D57F #7FD8D5 #D57FD8
tetradic
#D8D57F #7FD8A9 #7F82D8 #D87FAE
square
#D8D57F #7FD8A9 #7F82D8 #D87FAE
split-complementary
#D8D57F #7FAED8 #A97FD8
monochromatic
#A9A534 #CAC650 #D8D57F #E6E4AE #F5F4DD

Accessibility & contrast

On white

1.53
#D8D57F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.74
#D8D57F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D8D57F
13.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D8D57F#FFFFFF#000000##000000
##D8D57F1.001.5313.7413.74
#FFFFFF1.531.0021.0021.00
#00000013.7421.001.001.00
##00000013.7421.001.001.00

Color blindness preview

Protanopia (red-blind)
#E2CF78
Deuteranopia (green-blind)
#E4D383
Tritanopia (blue-blind)
#E4CBC0
Achromatopsia (no color)
#D1D1D1

Design tokens & code

CSS
--color: #d8d57f;
/* rgb */ color: rgb(216, 213, 127);
/* oklch */ color: oklch(85.7% 0.108 106.7);
Tailwind
colors: {
  custom: {
    50: '#e5e1a5',
    500: '#d8d57f',
    950: '#000000',
  },
}
SCSS
$custom: #d8d57f;
$custom-light: #e5e1a5;
$custom-dark: #000000;
JSON
{
  "hex": "#d8d57f",
  "rgb": {
    "r": 216,
    "g": 213,
    "b": 127
  },
  "hsl": {
    "h": 57.978,
    "s": 53.293,
    "l": 67.255
  },
  "oklch": {
    "l": 0.8566,
    "c": 0.1083,
    "h": 106.7
  },
  "luminance": 0.6372
}

Semantic roles & 50–950 ramp

primary
#D8D57F
secondary
#4F52AC
accent
#2AC125
background
#FEFEFC
surface
#FCFCF6
border
#D5D5D0
text
#16150F
muted
#848480

Preview Lab

Preview with #D8D57F

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

Preview Lab → · Contrast checker → · Palette generator →

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