#D8C151#D8C151

#D8C151 is a light, vivid yellow. Relative luminance 0.533; OKLCH L 80.9% C 0.133 H 97.7°. Best body text is #000000 at 11.67:1 contrast (WCAG AA passes).

Color values

HEX#D8C151
RGBrgb(216, 193, 81)
HSLhsl(50, 63%, 58%)
HSVhsv(50, 63%, 85%)
CMYKcmyk(0%, 10.6%, 62.5%, 15.3%)
CIE-LABlab(78.07, -4.90, 57.76)
CIE-LCHlch(78.07, 57.97, 94.85°)
OKLaboklab(80.93% -0.0178 0.132)
OKLCHoklch(80.93% 0.133 97.7)
XYZxyz(48.8762, 53.3352, 15.5032)
Luminance0.5333 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D8C151 #5168D8
analogous
#D87D51 #D8C151 #ABD851
triadic
#D8C151 #51D8C1 #C151D8
tetradic
#D8C151 #51D87D #5168D8 #D851AB
square
#D8C151 #51D87D #5168D8 #D851AB
split-complementary
#D8C151 #51ABD8 #7D51D8
monochromatic
#8F7C20 #C1A72B #D8C151 #E3D383 #EEE5B5

Accessibility & contrast

On white

1.80
#D8C151 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.67
#D8C151 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D8C151
11.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D8C151#FFFFFF#000000##000000
##D8C1511.001.8011.6711.67
#FFFFFF1.801.0021.0021.00
#00000011.6721.001.001.00
##00000011.6721.001.001.00

Color blindness preview

Protanopia (red-blind)
#D3BD44
Deuteranopia (green-blind)
#D9C457
Tritanopia (blue-blind)
#E8B4A9
Achromatopsia (no color)
#C1C1C1

Design tokens & code

CSS
--color: #d8c151;
/* rgb */ color: rgb(216, 193, 81);
/* oklch */ color: oklch(80.9% 0.133 97.7);
Tailwind
colors: {
  custom: {
    50: '#e7d386',
    500: '#d8c151',
    950: '#000000',
  },
}
SCSS
$custom: #d8c151;
$custom-light: #e7d386;
$custom-dark: #000000;
JSON
{
  "hex": "#d8c151",
  "rgb": {
    "r": 216,
    "g": 193,
    "b": 81
  },
  "hsl": {
    "h": 49.778,
    "s": 63.38,
    "l": 58.235
  },
  "oklch": {
    "l": 0.80932,
    "c": 0.13319,
    "h": 97.7
  },
  "luminance": 0.53333
}

Semantic roles & 50–950 ramp

primary
#D8C151
secondary
#394994
accent
#5EE641
background
#FFFEFB
surface
#FEFBF2
border
#D6D4CC
text
#16140B
muted
#85837E

Preview Lab

Preview with #D8C151

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

Preview Lab → · Contrast checker → · Palette generator →

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