#D8CC4A#D8CC4A

#D8CC4A is a very light, vivid yellow. Relative luminance 0.583; OKLCH L 83.2% C 0.148 H 104.0°. Best body text is #000000 at 12.66:1 contrast (WCAG AA passes).

Color values

HEX#D8CC4A
RGBrgb(216, 204, 74)
HSLhsl(55, 65%, 57%)
HSVhsv(55, 66%, 85%)
CMYKcmyk(0%, 5.6%, 65.7%, 15.3%)
CIE-LABlab(80.89, -10.95, 63.69)
CIE-LCHlch(80.89, 64.63, 99.76°)
OKLaboklab(83.15% -0.0359 0.1435)
OKLCHoklch(83.15% 0.148 104)
XYZxyz(51.1498, 58.2810, 15.0323)
Luminance0.5828 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D8CC4A #4A56D8
analogous
#D8854A #D8CC4A #9DD84A
triadic
#D8CC4A #4AD8CC #CC4AD8
tetradic
#D8CC4A #4AD885 #4A56D8 #D84A9D
square
#D8CC4A #4AD885 #4A56D8 #D84A9D
split-complementary
#D8CC4A #4A9DD8 #854AD8
monochromatic
#8A811E #BCB029 #D8CC4A #E3DA7C #EEE8AF

Accessibility & contrast

On white

1.66
#D8CC4A on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.66
#D8CC4A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D8CC4A
12.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D8CC4A#FFFFFF#000000##000000
##D8CC4A1.001.6612.6612.66
#FFFFFF1.661.0021.0021.00
#00000012.6621.001.001.00
##00000012.6621.001.001.00

Color blindness preview

Protanopia (red-blind)
#DDC539
Deuteranopia (green-blind)
#E1CC52
Tritanopia (blue-blind)
#E8BFB1
Achromatopsia (no color)
#C9C9C9

Design tokens & code

CSS
--color: #d8cc4a;
/* rgb */ color: rgb(216, 204, 74);
/* oklch */ color: oklch(83.2% 0.148 104.0);
Tailwind
colors: {
  custom: {
    50: '#e7db83',
    500: '#d8cc4a',
    950: '#000000',
  },
}
SCSS
$custom: #d8cc4a;
$custom-light: #e7db83;
$custom-dark: #000000;
JSON
{
  "hex": "#d8cc4a",
  "rgb": {
    "r": 216,
    "g": 204,
    "b": 74
  },
  "hsl": {
    "h": 54.93,
    "s": 64.545,
    "l": 56.863
  },
  "oklch": {
    "l": 0.83154,
    "c": 0.14791,
    "h": 104
  },
  "luminance": 0.58279
}

Semantic roles & 50–950 ramp

primary
#D8CC4A
secondary
#363E90
accent
#4EE840
background
#FFFEFB
surface
#FEFBF2
border
#D6D4CC
text
#16140B
muted
#85837E

Preview Lab

Preview with #D8CC4A

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

Preview Lab → · Contrast checker → · Palette generator →

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