#D8C548#D8C548

#D8C548 is a light, vivid yellow. Relative luminance 0.550; OKLCH L 81.7% C 0.143 H 100.6°. Best body text is #000000 at 12.00:1 contrast (WCAG AA passes).

Color values

HEX#D8C548
RGBrgb(216, 197, 72)
HSLhsl(52, 65%, 56%)
HSVhsv(52, 67%, 85%)
CMYKcmyk(0%, 8.8%, 66.7%, 15.3%)
CIE-LABlab(79.04, -7.50, 62.58)
CIE-LCHlch(79.04, 63.03, 96.84°)
OKLaboklab(81.68% -0.0263 0.1408)
OKLCHoklch(81.68% 0.143 100.6)
XYZxyz(49.4570, 55.0015, 14.1409)
Luminance0.5500 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D8C548 #485BD8
analogous
#D87D48 #D8C548 #A3D848
triadic
#D8C548 #48D8C5 #C548D8
tetradic
#D8C548 #48D87D #485BD8 #D848A3
square
#D8C548 #48D87D #485BD8 #D848A3
split-complementary
#D8C548 #48A3D8 #7D48D8
monochromatic
#897A1D #BBA828 #D8C548 #E3D57A #EEE5AD

Accessibility & contrast

On white

1.75
#D8C548 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.00
#D8C548 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D8C548
12.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D8C548#FFFFFF#000000##000000
##D8C5481.001.7512.0012.00
#FFFFFF1.751.0021.0021.00
#00000012.0021.001.001.00
##00000012.0021.001.001.00

Color blindness preview

Protanopia (red-blind)
#D7C037
Deuteranopia (green-blind)
#DCC74F
Tritanopia (blue-blind)
#E8B7AB
Achromatopsia (no color)
#C4C4C4

Design tokens & code

CSS
--color: #d8c548;
/* rgb */ color: rgb(216, 197, 72);
/* oklch */ color: oklch(81.7% 0.143 100.6);
Tailwind
colors: {
  custom: {
    50: '#e7d681',
    500: '#d8c548',
    950: '#000000',
  },
}
SCSS
$custom: #d8c548;
$custom-light: #e7d681;
$custom-dark: #000000;
JSON
{
  "hex": "#d8c548",
  "rgb": {
    "r": 216,
    "g": 197,
    "b": 72
  },
  "hsl": {
    "h": 52.083,
    "s": 64.865,
    "l": 56.471
  },
  "oklch": {
    "l": 0.81677,
    "c": 0.14327,
    "h": 100.6
  },
  "luminance": 0.54999
}

Semantic roles & 50–950 ramp

primary
#D8C548
secondary
#36418F
accent
#56E840
background
#FFFEFB
surface
#FEFBF2
border
#D6D4CC
text
#16140B
muted
#85837E

Preview Lab

Preview with #D8C548

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

Preview Lab → · Contrast checker → · Palette generator →

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