#D8C837#D8C837

#D8C837 is a very light, vivid yellow. Relative luminance 0.562; OKLCH L 82.2% C 0.157 H 102.8°. Best body text is #000000 at 12.24:1 contrast (WCAG AA passes).

Color values

HEX#D8C837
RGBrgb(216, 200, 55)
HSLhsl(54, 67%, 53%)
HSVhsv(54, 75%, 85%)
CMYKcmyk(0%, 7.4%, 74.5%, 15.3%)
CIE-LABlab(79.72, -9.86, 69.57)
CIE-LCHlch(79.72, 70.26, 98.07°)
OKLaboklab(82.18% -0.0347 0.1526)
OKLCHoklch(82.18% 0.157 102.8)
XYZxyz(49.6650, 56.1855, 11.8425)
Luminance0.5618 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D8C837 #3747D8
analogous
#D87737 #D8C837 #98D837
triadic
#D8C837 #37D8C8 #C837D8
tetradic
#D8C837 #37D877 #3747D8 #D83798
square
#D8C837 #37D877 #3747D8 #D83798
split-complementary
#D8C837 #3798D8 #7737D8
monochromatic
#7C7218 #B0A222 #D8C837 #E2D66A #ECE49D

Accessibility & contrast

On white

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

On black

12.24
#D8C837 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D8C837
12.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D8C837#FFFFFF#000000##000000
##D8C8371.001.7212.2412.24
#FFFFFF1.721.0021.0021.00
#00000012.2421.001.001.00
##00000012.2421.001.001.00

Color blindness preview

Protanopia (red-blind)
#DAC219
Deuteranopia (green-blind)
#DFC942
Tritanopia (blue-blind)
#E9BAAC
Achromatopsia (no color)
#C6C6C6

Design tokens & code

CSS
--color: #d8c837;
/* rgb */ color: rgb(216, 200, 55);
/* oklch */ color: oklch(82.2% 0.157 102.8);
Tailwind
colors: {
  custom: {
    50: '#e8d879',
    500: '#d8c837',
    950: '#000000',
  },
}
SCSS
$custom: #d8c837;
$custom-light: #e8d879;
$custom-dark: #000000;
JSON
{
  "hex": "#d8c837",
  "rgb": {
    "r": 216,
    "g": 200,
    "b": 55
  },
  "hsl": {
    "h": 54.037,
    "s": 67.364,
    "l": 53.137
  },
  "oklch": {
    "l": 0.8218,
    "c": 0.15652,
    "h": 102.8
  },
  "luminance": 0.56183
}

Semantic roles & 50–950 ramp

primary
#D8C837
secondary
#2F3884
accent
#4FEA3E
background
#FFFEFB
surface
#FEFBF2
border
#D6D4CC
text
#17140A
muted
#85837D

Preview Lab

Preview with #D8C837

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

Preview Lab → · Contrast checker → · Palette generator →

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