#D8C450#D8C450

#D8C450 is a light, vivid yellow. Relative luminance 0.547; OKLCH L 81.5% C 0.136 H 99.5°. Best body text is #000000 at 11.93:1 contrast (WCAG AA passes).

Color values

HEX#D8C450
RGBrgb(216, 196, 80)
HSLhsl(51, 64%, 58%)
HSVhsv(51, 63%, 85%)
CMYKcmyk(0%, 9.3%, 63%, 15.3%)
CIE-LABlab(78.85, -6.51, 59.03)
CIE-LCHlch(78.85, 59.39, 96.30°)
OKLaboklab(81.54% -0.0225 0.1345)
OKLCHoklch(81.54% 0.136 99.5)
XYZxyz(49.5088, 54.6601, 15.5305)
Luminance0.5466 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D8C450 #5064D8
analogous
#D88050 #D8C450 #A8D850
triadic
#D8C450 #50D8C4 #C450D8
tetradic
#D8C450 #50D880 #5064D8 #D850A8
square
#D8C450 #50D880 #5064D8 #D850A8
split-complementary
#D8C450 #50A8D8 #8050D8
monochromatic
#8E7E20 #C0AA2B #D8C450 #E3D582 #EEE6B4

Accessibility & contrast

On white

1.76
#D8C450 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.93
#D8C450 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D8C450
11.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D8C450#FFFFFF#000000##000000
##D8C4501.001.7611.9311.93
#FFFFFF1.761.0021.0021.00
#00000011.9321.001.001.00
##00000011.9321.001.001.00

Color blindness preview

Protanopia (red-blind)
#D6BF42
Deuteranopia (green-blind)
#DBC656
Tritanopia (blue-blind)
#E8B7AB
Achromatopsia (no color)
#C3C3C3

Design tokens & code

CSS
--color: #d8c450;
/* rgb */ color: rgb(216, 196, 80);
/* oklch */ color: oklch(81.5% 0.136 99.5);
Tailwind
colors: {
  custom: {
    50: '#e7d586',
    500: '#d8c450',
    950: '#000000',
  },
}
SCSS
$custom: #d8c450;
$custom-light: #e7d586;
$custom-dark: #000000;
JSON
{
  "hex": "#d8c450",
  "rgb": {
    "r": 216,
    "g": 196,
    "b": 80
  },
  "hsl": {
    "h": 51.176,
    "s": 63.551,
    "l": 58.039
  },
  "oklch": {
    "l": 0.81542,
    "c": 0.13642,
    "h": 99.5
  },
  "luminance": 0.54658
}

Semantic roles & 50–950 ramp

primary
#D8C450
secondary
#394694
accent
#5AE741
background
#FFFEFB
surface
#FEFBF2
border
#D6D4CC
text
#16140B
muted
#85837E

Preview Lab

Preview with #D8C450

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

Preview Lab → · Contrast checker → · Palette generator →

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