#D8CA5F#D8CA5F

#D8CA5F is a very light, vivid yellow. Relative luminance 0.577; OKLCH L 82.9% C 0.129 H 101.9°. Best body text is #000000 at 12.53:1 contrast (WCAG AA passes).

Color values

HEX#D8CA5F
RGBrgb(216, 202, 95)
HSLhsl(53, 61%, 61%)
HSVhsv(53, 56%, 85%)
CMYKcmyk(0%, 6.5%, 56%, 15.3%)
CIE-LABlab(80.55, -8.54, 54.24)
CIE-LCHlch(80.55, 54.91, 98.95°)
OKLaboklab(82.94% -0.0266 0.1262)
OKLCHoklch(82.94% 0.129 101.9)
XYZxyz(51.5067, 57.6681, 19.2422)
Luminance0.5767 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D8CA5F #5F6DD8
analogous
#D88D5F #D8CA5F #A9D85F
triadic
#D8CA5F #5FD8CA #CA5FD8
tetradic
#D8CA5F #5FD88D #5F6DD8 #D85FA9
square
#D8CA5F #5FD88D #5F6DD8 #D85FA9
split-complementary
#D8CA5F #5FA9D8 #8D5FD8
monochromatic
#988A25 #C9B731 #D8CA5F #E4DA90 #F0EBC1

Accessibility & contrast

On white

1.68
#D8CA5F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.53
#D8CA5F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D8CA5F
12.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D8CA5F#FFFFFF#000000##000000
##D8CA5F1.001.6812.5312.53
#FFFFFF1.681.0021.0021.00
#00000012.5321.001.001.00
##00000012.5321.001.001.00

Color blindness preview

Protanopia (red-blind)
#DAC454
Deuteranopia (green-blind)
#DFCB64
Tritanopia (blue-blind)
#E7BEB2
Achromatopsia (no color)
#C8C8C8

Design tokens & code

CSS
--color: #d8ca5f;
/* rgb */ color: rgb(216, 202, 95);
/* oklch */ color: oklch(82.9% 0.129 101.9);
Tailwind
colors: {
  custom: {
    50: '#e7d990',
    500: '#d8ca5f',
    950: '#000000',
  },
}
SCSS
$custom: #d8ca5f;
$custom-light: #e7d990;
$custom-dark: #000000;
JSON
{
  "hex": "#d8ca5f",
  "rgb": {
    "r": 216,
    "g": 202,
    "b": 95
  },
  "hsl": {
    "h": 53.058,
    "s": 60.804,
    "l": 60.98
  },
  "oklch": {
    "l": 0.82942,
    "c": 0.12902,
    "h": 101.9
  },
  "luminance": 0.57666
}

Semantic roles & 50–950 ramp

primary
#D8CA5F
secondary
#3F4A9C
accent
#31C81D
background
#FFFEFC
surface
#FEFBF4
border
#D6D4CE
text
#16140D
muted
#85837F

Preview Lab

Preview with #D8CA5F

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

Preview Lab → · Contrast checker → · Palette generator →

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