#D8C545#D8C545

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

Color values

HEX#D8C545
RGBrgb(216, 197, 69)
HSLhsl(52, 65%, 56%)
HSVhsv(52, 68%, 85%)
CMYKcmyk(0%, 8.8%, 68.1%, 15.3%)
CIE-LABlab(79.02, -7.67, 63.76)
CIE-LCHlch(79.02, 64.22, 96.86°)
OKLaboklab(81.65% -0.0271 0.1428)
OKLCHoklch(81.65% 0.145 100.7)
XYZxyz(49.3615, 54.9633, 13.6380)
Luminance0.5496 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D8C545 #4558D8
analogous
#D87B45 #D8C545 #A1D845
triadic
#D8C545 #45D8C5 #C545D8
tetradic
#D8C545 #45D87B #4558D8 #D845A1
square
#D8C545 #45D87B #4558D8 #D845A1
split-complementary
#D8C545 #45A1D8 #7B45D8
monochromatic
#86791C #B9A627 #D8C545 #E3D578 #EDE5AA

Accessibility & contrast

On white

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

On black

11.99
#D8C545 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D8C545
11.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D8C545#FFFFFF#000000##000000
##D8C5451.001.7511.9911.99
#FFFFFF1.751.0021.0021.00
#00000011.9921.001.001.00
##00000011.9921.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #d8c545;
/* rgb */ color: rgb(216, 197, 69);
/* oklch */ color: oklch(81.7% 0.145 100.7);
Tailwind
colors: {
  custom: {
    50: '#e8d680',
    500: '#d8c545',
    950: '#000000',
  },
}
SCSS
$custom: #d8c545;
$custom-light: #e8d680;
$custom-dark: #000000;
JSON
{
  "hex": "#d8c545",
  "rgb": {
    "r": 216,
    "g": 197,
    "b": 69
  },
  "hsl": {
    "h": 52.245,
    "s": 65.333,
    "l": 55.882
  },
  "oklch": {
    "l": 0.81653,
    "c": 0.14537,
    "h": 100.7
  },
  "luminance": 0.54961
}

Semantic roles & 50–950 ramp

primary
#D8C545
secondary
#34408D
accent
#55E840
background
#FFFEFB
surface
#FEFBF2
border
#D6D4CC
text
#16140B
muted
#85837E

Preview Lab

Preview with #D8C545

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

Preview Lab → · Contrast checker → · Palette generator →

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