#D8CD5B#D8CD5B

#D8CD5B is a very light, vivid yellow. Relative luminance 0.590; OKLCH L 83.5% C 0.135 H 103.8°. Best body text is #000000 at 12.80:1 contrast (WCAG AA passes).

Color values

HEX#D8CD5B
RGBrgb(216, 205, 91)
HSLhsl(55, 62%, 60%)
HSVhsv(55, 58%, 85%)
CMYKcmyk(0%, 5.1%, 57.9%, 15.3%)
CIE-LABlab(81.30, -10.36, 56.90)
CIE-LCHlch(81.30, 57.83, 100.32°)
OKLaboklab(83.52% -0.0323 0.1315)
OKLCHoklch(83.52% 0.135 103.8)
XYZxyz(52.0403, 59.0187, 18.5460)
Luminance0.5902 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D8CD5B #5B66D8
analogous
#D88E5B #D8CD5B #A4D85B
triadic
#D8CD5B #5BD8CD #CD5BD8
tetradic
#D8CD5B #5BD88E #5B66D8 #D85BA4
square
#D8CD5B #5BD88E #5B66D8 #D85BA4
split-complementary
#D8CD5B #5BA4D8 #8E5BD8
monochromatic
#958B23 #C7B92F #D8CD5B #E4DC8C #F0EBBE

Accessibility & contrast

On white

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

On black

12.80
#D8CD5B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D8CD5B
12.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D8CD5B#FFFFFF#000000##000000
##D8CD5B1.001.6412.8012.80
#FFFFFF1.641.0021.0021.00
#00000012.8021.001.001.00
##00000012.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#DDC74F
Deuteranopia (green-blind)
#E1CD61
Tritanopia (blue-blind)
#E7C0B4
Achromatopsia (no color)
#CACACA

Design tokens & code

CSS
--color: #d8cd5b;
/* rgb */ color: rgb(216, 205, 91);
/* oklch */ color: oklch(83.5% 0.135 103.8);
Tailwind
colors: {
  custom: {
    50: '#e7dc8d',
    500: '#d8cd5b',
    950: '#000000',
  },
}
SCSS
$custom: #d8cd5b;
$custom-light: #e7dc8d;
$custom-dark: #000000;
JSON
{
  "hex": "#d8cd5b",
  "rgb": {
    "r": 216,
    "g": 205,
    "b": 91
  },
  "hsl": {
    "h": 54.72,
    "s": 61.576,
    "l": 60.196
  },
  "oklch": {
    "l": 0.83524,
    "c": 0.13538,
    "h": 103.8
  },
  "luminance": 0.59017
}

Semantic roles & 50–950 ramp

primary
#D8CD5B
secondary
#3D459A
accent
#2BC91C
background
#FFFEFC
surface
#FEFBF4
border
#D6D4CE
text
#16150C
muted
#85847F

Preview Lab

Preview with #D8CD5B

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

Preview Lab → · Contrast checker → · Palette generator →

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