#D8C54B#D8C54B

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

Color values

HEX#D8C54B
RGBrgb(216, 197, 75)
HSLhsl(52, 64%, 57%)
HSVhsv(52, 65%, 85%)
CMYKcmyk(0%, 8.8%, 65.3%, 15.3%)
CIE-LABlab(79.07, -7.33, 61.38)
CIE-LCHlch(79.07, 61.81, 96.81°)
OKLaboklab(81.7% -0.0255 0.1388)
OKLCHoklch(81.7% 0.141 100.4)
XYZxyz(49.5573, 55.0416, 14.6690)
Luminance0.5504 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D8C54B #4B5ED8
analogous
#D87F4B #D8C54B #A5D84B
triadic
#D8C54B #4BD8C5 #C54BD8
tetradic
#D8C54B #4BD87F #4B5ED8 #D84BA5
square
#D8C54B #4BD87F #4B5ED8 #D84BA5
split-complementary
#D8C54B #4BA5D8 #7F4BD8
monochromatic
#8B7C1E #BDA929 #D8C54B #E3D57D #EEE5B0

Accessibility & contrast

On white

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

On black

12.01
#D8C54B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D8C54B
12.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D8C54B#FFFFFF#000000##000000
##D8C54B1.001.7512.0112.01
#FFFFFF1.751.0021.0021.00
#00000012.0121.001.001.00
##00000012.0121.001.001.00

Color blindness preview

Protanopia (red-blind)
#D7C03C
Deuteranopia (green-blind)
#DCC752
Tritanopia (blue-blind)
#E8B7AC
Achromatopsia (no color)
#C4C4C4

Design tokens & code

CSS
--color: #d8c54b;
/* rgb */ color: rgb(216, 197, 75);
/* oklch */ color: oklch(81.7% 0.141 100.4);
Tailwind
colors: {
  custom: {
    50: '#e7d683',
    500: '#d8c54b',
    950: '#000000',
  },
}
SCSS
$custom: #d8c54b;
$custom-light: #e7d683;
$custom-dark: #000000;
JSON
{
  "hex": "#d8c54b",
  "rgb": {
    "r": 216,
    "g": 197,
    "b": 75
  },
  "hsl": {
    "h": 51.915,
    "s": 64.384,
    "l": 57.059
  },
  "oklch": {
    "l": 0.81703,
    "c": 0.14109,
    "h": 100.4
  },
  "luminance": 0.55039
}

Semantic roles & 50–950 ramp

primary
#D8C54B
secondary
#374390
accent
#57E740
background
#FFFEFB
surface
#FEFBF2
border
#D6D4CC
text
#16140B
muted
#85837E

Preview Lab

Preview with #D8C54B

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

Preview Lab → · Contrast checker → · Palette generator →

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