#D8CC4F#D8CC4F

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

Color values

HEX#D8CC4F
RGBrgb(216, 204, 79)
HSLhsl(55, 64%, 58%)
HSVhsv(55, 63%, 85%)
CMYKcmyk(0%, 5.6%, 63.4%, 15.3%)
CIE-LABlab(80.93, -10.66, 61.69)
CIE-LCHlch(80.93, 62.60, 99.80°)
OKLaboklab(83.2% -0.0345 0.14)
OKLCHoklch(83.2% 0.144 103.8)
XYZxyz(51.3250, 58.3511, 15.9550)
Luminance0.5835 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D8CC4F #4F5BD8
analogous
#D8884F #D8CC4F #9FD84F
triadic
#D8CC4F #4FD8CC #CC4FD8
tetradic
#D8CC4F #4FD888 #4F5BD8 #D84F9F
square
#D8CC4F #4FD888 #4F5BD8 #D84F9F
split-complementary
#D8CC4F #4F9FD8 #884FD8
monochromatic
#8D841F #BFB22A #D8CC4F #E3DB81 #EEE9B3

Accessibility & contrast

On white

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

On black

12.67
#D8CC4F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D8CC4F
12.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D8CC4F#FFFFFF#000000##000000
##D8CC4F1.001.6612.6712.67
#FFFFFF1.661.0021.0021.00
#00000012.6721.001.001.00
##00000012.6721.001.001.00

Color blindness preview

Protanopia (red-blind)
#DDC540
Deuteranopia (green-blind)
#E1CC56
Tritanopia (blue-blind)
#E7BFB2
Achromatopsia (no color)
#C9C9C9

Design tokens & code

CSS
--color: #d8cc4f;
/* rgb */ color: rgb(216, 204, 79);
/* oklch */ color: oklch(83.2% 0.144 103.8);
Tailwind
colors: {
  custom: {
    50: '#e7db86',
    500: '#d8cc4f',
    950: '#000000',
  },
}
SCSS
$custom: #d8cc4f;
$custom-light: #e7db86;
$custom-dark: #000000;
JSON
{
  "hex": "#d8cc4f",
  "rgb": {
    "r": 216,
    "g": 204,
    "b": 79
  },
  "hsl": {
    "h": 54.745,
    "s": 63.721,
    "l": 57.843
  },
  "oklch": {
    "l": 0.83197,
    "c": 0.14421,
    "h": 103.8
  },
  "luminance": 0.58349
}

Semantic roles & 50–950 ramp

primary
#D8CC4F
secondary
#384093
accent
#50E741
background
#FFFEFC
surface
#FEFBF3
border
#D6D4CD
text
#16140B
muted
#85837E

Preview Lab

Preview with #D8CC4F

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

Preview Lab → · Contrast checker → · Palette generator →

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