#D8CD5F#D8CD5F

#D8CD5F is a very light, vivid yellow. Relative luminance 0.591; OKLCH L 83.6% C 0.132 H 103.6°. Best body text is #000000 at 12.82:1 contrast (WCAG AA passes).

Color values

HEX#D8CD5F
RGBrgb(216, 205, 95)
HSLhsl(55, 61%, 61%)
HSVhsv(55, 56%, 85%)
CMYKcmyk(0%, 5.1%, 56%, 15.3%)
CIE-LABlab(81.34, -10.06, 55.14)
CIE-LCHlch(81.34, 56.05, 100.34°)
OKLaboklab(83.57% -0.031 0.1282)
OKLCHoklch(83.57% 0.132 103.6)
XYZxyz(52.2175, 59.0896, 19.4791)
Luminance0.5909 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D8CD5F #5F6AD8
analogous
#D8905F #D8CD5F #A7D85F
triadic
#D8CD5F #5FD8CD #CD5FD8
tetradic
#D8CD5F #5FD890 #5F6AD8 #D85FA7
square
#D8CD5F #5FD890 #5F6AD8 #D85FA7
split-complementary
#D8CD5F #5FA7D8 #905FD8
monochromatic
#988D25 #C9BB31 #D8CD5F #E4DC90 #F0ECC1

Accessibility & contrast

On white

1.64
#D8CD5F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.82
#D8CD5F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D8CD5F
12.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D8CD5F#FFFFFF#000000##000000
##D8CD5F1.001.6412.8212.82
#FFFFFF1.641.0021.0021.00
#00000012.8221.001.001.00
##00000012.8221.001.001.00

Color blindness preview

Protanopia (red-blind)
#DDC754
Deuteranopia (green-blind)
#E1CD65
Tritanopia (blue-blind)
#E6C1B5
Achromatopsia (no color)
#CACACA

Design tokens & code

CSS
--color: #d8cd5f;
/* rgb */ color: rgb(216, 205, 95);
/* oklch */ color: oklch(83.6% 0.132 103.6);
Tailwind
colors: {
  custom: {
    50: '#e7dc90',
    500: '#d8cd5f',
    950: '#000000',
  },
}
SCSS
$custom: #d8cd5f;
$custom-light: #e7dc90;
$custom-dark: #000000;
JSON
{
  "hex": "#d8cd5f",
  "rgb": {
    "r": 216,
    "g": 205,
    "b": 95
  },
  "hsl": {
    "h": 54.545,
    "s": 60.804,
    "l": 60.98
  },
  "oklch": {
    "l": 0.83567,
    "c": 0.13187,
    "h": 103.6
  },
  "luminance": 0.59088
}

Semantic roles & 50–950 ramp

primary
#D8CD5F
secondary
#3F479C
accent
#2DC81D
background
#FFFEFC
surface
#FEFBF4
border
#D6D4CE
text
#16150D
muted
#85847F

Preview Lab

Preview with #D8CD5F

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

Preview Lab → · Contrast checker → · Palette generator →

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