#D8D751#D8D751

#D8D751 is a very light, vivid yellow. Relative luminance 0.638; OKLCH L 85.5% C 0.153 H 108.8°. Best body text is #000000 at 13.76:1 contrast (WCAG AA passes).

Color values

HEX#D8D751
RGBrgb(216, 215, 81)
HSLhsl(60, 63%, 58%)
HSVhsv(60, 63%, 85%)
CMYKcmyk(0%, 0.5%, 62.5%, 15.3%)
CIE-LABlab(83.86, -16.04, 63.96)
CIE-LCHlch(83.86, 65.94, 104.08°)
OKLaboklab(85.53% -0.0495 0.1451)
OKLCHoklch(85.53% 0.153 108.8)
XYZxyz(54.1063, 63.7954, 17.2466)
Luminance0.6379 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D8D751 #5152D8
analogous
#D89451 #D8D751 #95D851
triadic
#D8D751 #51D8D7 #D751D8
tetradic
#D8D751 #51D894 #5152D8 #D85195
square
#D8D751 #51D894 #5152D8 #D85195
split-complementary
#D8D751 #5195D8 #9451D8
monochromatic
#8F8E20 #C1C02B #D8D751 #E3E283 #EEEEB5

Accessibility & contrast

On white

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

On black

13.76
#D8D751 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D8D751
13.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D8D751#FFFFFF#000000##000000
##D8D7511.001.5313.7613.76
#FFFFFF1.531.0021.0021.00
#00000013.7621.001.001.00
##00000013.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#E7CF40
Deuteranopia (green-blind)
#E9D359
Tritanopia (blue-blind)
#E7CABB
Achromatopsia (no color)
#D1D1D1

Design tokens & code

CSS
--color: #d8d751;
/* rgb */ color: rgb(216, 215, 81);
/* oklch */ color: oklch(85.5% 0.153 108.8);
Tailwind
colors: {
  custom: {
    50: '#e7e388',
    500: '#d8d751',
    950: '#000000',
  },
}
SCSS
$custom: #d8d751;
$custom-light: #e7e388;
$custom-dark: #000000;
JSON
{
  "hex": "#d8d751",
  "rgb": {
    "r": 216,
    "g": 215,
    "b": 81
  },
  "hsl": {
    "h": 59.556,
    "s": 63.38,
    "l": 58.235
  },
  "oklch": {
    "l": 0.85532,
    "c": 0.15333,
    "h": 108.8
  },
  "luminance": 0.63794
}

Semantic roles & 50–950 ramp

primary
#D8D751
secondary
#393A94
accent
#43E641
background
#FFFEFC
surface
#FEFCF4
border
#D6D5CE
text
#16150C
muted
#85847F

Preview Lab

Preview with #D8D751

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

Preview Lab → · Contrast checker → · Palette generator →

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