#D8C451#D8C451

#D8C451 is a light, vivid yellow. Relative luminance 0.547; OKLCH L 81.6% C 0.136 H 99.4°. Best body text is #000000 at 11.93:1 contrast (WCAG AA passes).

Color values

HEX#D8C451
RGBrgb(216, 196, 81)
HSLhsl(51, 63%, 58%)
HSVhsv(51, 63%, 85%)
CMYKcmyk(0%, 9.3%, 62.5%, 15.3%)
CIE-LABlab(78.85, -6.45, 58.61)
CIE-LCHlch(78.85, 58.96, 96.28°)
OKLaboklab(81.55% -0.0223 0.1338)
OKLCHoklch(81.55% 0.136 99.4)
XYZxyz(49.5461, 54.6750, 15.7265)
Luminance0.5467 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D8C451 #5165D8
analogous
#D88051 #D8C451 #A8D851
triadic
#D8C451 #51D8C4 #C451D8
tetradic
#D8C451 #51D880 #5165D8 #D851A8
square
#D8C451 #51D880 #5165D8 #D851A8
split-complementary
#D8C451 #51A8D8 #8051D8
monochromatic
#8F7E20 #C1AA2B #D8C451 #E3D583 #EEE6B5

Accessibility & contrast

On white

1.76
#D8C451 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.93
#D8C451 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D8C451
11.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D8C451#FFFFFF#000000##000000
##D8C4511.001.7611.9311.93
#FFFFFF1.761.0021.0021.00
#00000011.9321.001.001.00
##00000011.9321.001.001.00

Color blindness preview

Protanopia (red-blind)
#D5BF44
Deuteranopia (green-blind)
#DBC657
Tritanopia (blue-blind)
#E8B7AC
Achromatopsia (no color)
#C3C3C3

Design tokens & code

CSS
--color: #d8c451;
/* rgb */ color: rgb(216, 196, 81);
/* oklch */ color: oklch(81.6% 0.136 99.4);
Tailwind
colors: {
  custom: {
    50: '#e7d587',
    500: '#d8c451',
    950: '#000000',
  },
}
SCSS
$custom: #d8c451;
$custom-light: #e7d587;
$custom-dark: #000000;
JSON
{
  "hex": "#d8c451",
  "rgb": {
    "r": 216,
    "g": 196,
    "b": 81
  },
  "hsl": {
    "h": 51.111,
    "s": 63.38,
    "l": 58.235
  },
  "oklch": {
    "l": 0.81551,
    "c": 0.13563,
    "h": 99.4
  },
  "luminance": 0.54673
}

Semantic roles & 50–950 ramp

primary
#D8C451
secondary
#394794
accent
#5AE641
background
#FFFEFC
surface
#FEFBF3
border
#D6D4CD
text
#16140C
muted
#85837F

Preview Lab

Preview with #D8C451

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

Preview Lab → · Contrast checker → · Palette generator →

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