#D8CD4F#D8CD4F

#D8CD4F is a very light, vivid yellow. Relative luminance 0.588; OKLCH L 83.4% C 0.145 H 104.3°. Best body text is #000000 at 12.77:1 contrast (WCAG AA passes).

Color values

HEX#D8CD4F
RGBrgb(216, 205, 79)
HSLhsl(55, 64%, 58%)
HSVhsv(55, 63%, 85%)
CMYKcmyk(0%, 5.1%, 63.4%, 15.3%)
CIE-LABlab(81.20, -11.16, 61.97)
CIE-LCHlch(81.20, 62.96, 100.21°)
OKLaboklab(83.41% -0.0359 0.1406)
OKLCHoklch(83.41% 0.145 104.3)
XYZxyz(51.5634, 58.8280, 16.0344)
Luminance0.5883 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D8CD4F #4F5AD8
analogous
#D8884F #D8CD4F #9FD84F
triadic
#D8CD4F #4FD8CD #CD4FD8
tetradic
#D8CD4F #4FD888 #4F5AD8 #D84F9F
square
#D8CD4F #4FD888 #4F5AD8 #D84F9F
split-complementary
#D8CD4F #4F9FD8 #884FD8
monochromatic
#8D841F #BFB32A #D8CD4F #E3DB81 #EEE9B3

Accessibility & contrast

On white

1.65
#D8CD4F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.77
#D8CD4F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D8CD4F
12.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D8CD4F#FFFFFF#000000##000000
##D8CD4F1.001.6512.7712.77
#FFFFFF1.651.0021.0021.00
#00000012.7721.001.001.00
##00000012.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#DEC63F
Deuteranopia (green-blind)
#E2CC56
Tritanopia (blue-blind)
#E7C0B3
Achromatopsia (no color)
#CACACA

Design tokens & code

CSS
--color: #d8cd4f;
/* rgb */ color: rgb(216, 205, 79);
/* oklch */ color: oklch(83.4% 0.145 104.3);
Tailwind
colors: {
  custom: {
    50: '#e7dc86',
    500: '#d8cd4f',
    950: '#000000',
  },
}
SCSS
$custom: #d8cd4f;
$custom-light: #e7dc86;
$custom-dark: #000000;
JSON
{
  "hex": "#d8cd4f",
  "rgb": {
    "r": 216,
    "g": 205,
    "b": 79
  },
  "hsl": {
    "h": 55.182,
    "s": 63.721,
    "l": 57.843
  },
  "oklch": {
    "l": 0.83407,
    "c": 0.14513,
    "h": 104.3
  },
  "luminance": 0.58826
}

Semantic roles & 50–950 ramp

primary
#D8CD4F
secondary
#384093
accent
#4EE741
background
#FFFEFC
surface
#FEFBF3
border
#D6D4CD
text
#16150C
muted
#85847F

Preview Lab

Preview with #D8CD4F

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

Preview Lab → · Contrast checker → · Palette generator →

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