#D8D451#D8D451

#D8D451 is a very light, vivid yellow. Relative luminance 0.623; OKLCH L 84.9% C 0.150 H 107.5°. Best body text is #000000 at 13.46:1 contrast (WCAG AA passes).

Color values

HEX#D8D451
RGBrgb(216, 212, 81)
HSLhsl(58, 63%, 58%)
HSVhsv(58, 63%, 85%)
CMYKcmyk(0%, 1.9%, 62.5%, 15.3%)
CIE-LABlab(83.06, -14.55, 63.12)
CIE-LCHlch(83.06, 64.77, 102.98°)
OKLaboklab(84.9% -0.0453 0.1433)
OKLCHoklch(84.9% 0.15 107.5)
XYZxyz(53.3494, 62.2816, 16.9943)
Luminance0.6228 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D8D451 #5155D8
analogous
#D89051 #D8D451 #98D851
triadic
#D8D451 #51D8D4 #D451D8
tetradic
#D8D451 #51D890 #5155D8 #D85198
square
#D8D451 #51D890 #5155D8 #D85198
split-complementary
#D8D451 #5198D8 #9051D8
monochromatic
#8F8B20 #C1BC2B #D8D451 #E3E083 #EEEDB5

Accessibility & contrast

On white

1.56
#D8D451 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.46
#D8D451 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D8D451
13.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D8D451#FFFFFF#000000##000000
##D8D4511.001.5613.4613.46
#FFFFFF1.561.0021.0021.00
#00000013.4621.001.001.00
##00000013.4621.001.001.00

Color blindness preview

Protanopia (red-blind)
#E5CC41
Deuteranopia (green-blind)
#E7D159
Tritanopia (blue-blind)
#E7C7B9
Achromatopsia (no color)
#CFCFCF

Design tokens & code

CSS
--color: #d8d451;
/* rgb */ color: rgb(216, 212, 81);
/* oklch */ color: oklch(84.9% 0.150 107.5);
Tailwind
colors: {
  custom: {
    50: '#e7e188',
    500: '#d8d451',
    950: '#000000',
  },
}
SCSS
$custom: #d8d451;
$custom-light: #e7e188;
$custom-dark: #000000;
JSON
{
  "hex": "#d8d451",
  "rgb": {
    "r": 216,
    "g": 212,
    "b": 81
  },
  "hsl": {
    "h": 58.222,
    "s": 63.38,
    "l": 58.235
  },
  "oklch": {
    "l": 0.84898,
    "c": 0.15033,
    "h": 107.5
  },
  "luminance": 0.6228
}

Semantic roles & 50–950 ramp

primary
#D8D451
secondary
#393C94
accent
#46E641
background
#FFFEFC
surface
#FEFCF4
border
#D6D5CE
text
#16150C
muted
#85847F

Preview Lab

Preview with #D8D451

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

Preview Lab → · Contrast checker → · Palette generator →

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