#D8C54E#D8C54E

#D8C54E is a light, vivid yellow. Relative luminance 0.551; OKLCH L 81.7% C 0.139 H 100.2°. Best body text is #000000 at 12.02:1 contrast (WCAG AA passes).

Color values

HEX#D8C54E
RGBrgb(216, 197, 78)
HSLhsl(52, 64%, 58%)
HSVhsv(52, 64%, 85%)
CMYKcmyk(0%, 8.8%, 63.9%, 15.3%)
CIE-LABlab(79.09, -7.15, 60.15)
CIE-LCHlch(79.09, 60.57, 96.78°)
OKLaboklab(81.73% -0.0246 0.1366)
OKLCHoklch(81.73% 0.139 100.2)
XYZxyz(49.6624, 55.0836, 15.2225)
Luminance0.5508 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D8C54E #4E61D8
analogous
#D8804E #D8C54E #A6D84E
triadic
#D8C54E #4ED8C5 #C54ED8
tetradic
#D8C54E #4ED880 #4E61D8 #D84EA6
square
#D8C54E #4ED880 #4E61D8 #D84EA6
split-complementary
#D8C54E #4EA6D8 #804ED8
monochromatic
#8D7E1F #BFAA2A #D8C54E #E3D580 #EEE6B2

Accessibility & contrast

On white

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

On black

12.02
#D8C54E on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D8C54E
12.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D8C54E#FFFFFF#000000##000000
##D8C54E1.001.7512.0212.02
#FFFFFF1.751.0021.0021.00
#00000012.0221.001.001.00
##00000012.0221.001.001.00

Color blindness preview

Protanopia (red-blind)
#D7C040
Deuteranopia (green-blind)
#DCC754
Tritanopia (blue-blind)
#E8B8AC
Achromatopsia (no color)
#C4C4C4

Design tokens & code

CSS
--color: #d8c54e;
/* rgb */ color: rgb(216, 197, 78);
/* oklch */ color: oklch(81.7% 0.139 100.2);
Tailwind
colors: {
  custom: {
    50: '#e7d685',
    500: '#d8c54e',
    950: '#000000',
  },
}
SCSS
$custom: #d8c54e;
$custom-light: #e7d685;
$custom-dark: #000000;
JSON
{
  "hex": "#d8c54e",
  "rgb": {
    "r": 216,
    "g": 197,
    "b": 78
  },
  "hsl": {
    "h": 51.739,
    "s": 63.889,
    "l": 57.647
  },
  "oklch": {
    "l": 0.8173,
    "c": 0.13882,
    "h": 100.2
  },
  "luminance": 0.55081
}

Semantic roles & 50–950 ramp

primary
#D8C54E
secondary
#384492
accent
#58E741
background
#FFFEFB
surface
#FEFBF2
border
#D6D4CC
text
#16140B
muted
#85837E

Preview Lab

Preview with #D8C54E

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

Preview Lab → · Contrast checker → · Palette generator →

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