#D8C757#D8C757

#D8C757 is a very light, vivid yellow. Relative luminance 0.561; OKLCH L 82.2% C 0.133 H 100.7°. Best body text is #000000 at 12.23:1 contrast (WCAG AA passes).

Color values

HEX#D8C757
RGBrgb(216, 199, 87)
HSLhsl(52, 62%, 59%)
HSVhsv(52, 60%, 85%)
CMYKcmyk(0%, 7.9%, 59.7%, 15.3%)
CIE-LABlab(79.69, -7.59, 56.89)
CIE-LCHlch(79.69, 57.39, 97.60°)
OKLaboklab(82.23% -0.0248 0.1309)
OKLCHoklch(82.23% 0.133 100.7)
XYZxyz(50.4645, 56.1359, 17.1921)
Luminance0.5613 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D8C757 #5768D8
analogous
#D88757 #D8C757 #A9D857
triadic
#D8C757 #57D8C7 #C757D8
tetradic
#D8C757 #57D887 #5768D8 #D857A9
square
#D8C757 #57D887 #5768D8 #D857A9
split-complementary
#D8C757 #57A9D8 #8757D8
monochromatic
#938422 #C4B02E #D8C757 #E4D889 #EFE8BA

Accessibility & contrast

On white

1.72
#D8C757 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.23
#D8C757 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D8C757
12.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D8C757#FFFFFF#000000##000000
##D8C7571.001.7212.2312.23
#FFFFFF1.721.0021.0021.00
#00000012.2321.001.001.00
##00000012.2321.001.001.00

Color blindness preview

Protanopia (red-blind)
#D8C24B
Deuteranopia (green-blind)
#DDC95D
Tritanopia (blue-blind)
#E7BAAF
Achromatopsia (no color)
#C5C5C5

Design tokens & code

CSS
--color: #d8c757;
/* rgb */ color: rgb(216, 199, 87);
/* oklch */ color: oklch(82.2% 0.133 100.7);
Tailwind
colors: {
  custom: {
    50: '#e7d78a',
    500: '#d8c757',
    950: '#000000',
  },
}
SCSS
$custom: #d8c757;
$custom-light: #e7d78a;
$custom-dark: #000000;
JSON
{
  "hex": "#d8c757",
  "rgb": {
    "r": 216,
    "g": 199,
    "b": 87
  },
  "hsl": {
    "h": 52.093,
    "s": 62.319,
    "l": 59.412
  },
  "oklch": {
    "l": 0.82233,
    "c": 0.13327,
    "h": 100.7
  },
  "luminance": 0.56134
}

Semantic roles & 50–950 ramp

primary
#D8C757
secondary
#3C4898
accent
#58E542
background
#FFFEFC
surface
#FEFBF4
border
#D6D4CE
text
#16140C
muted
#85837F

Preview Lab

Preview with #D8C757

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

Preview Lab → · Contrast checker → · Palette generator →

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