#D8CB5F#D8CB5F

#D8CB5F is a very light, vivid yellow. Relative luminance 0.581; OKLCH L 83.2% C 0.130 H 102.5°. Best body text is #000000 at 12.63:1 contrast (WCAG AA passes).

Color values

HEX#D8CB5F
RGBrgb(216, 203, 95)
HSLhsl(54, 61%, 61%)
HSVhsv(54, 56%, 85%)
CMYKcmyk(0%, 6%, 56%, 15.3%)
CIE-LABlab(80.82, -9.05, 54.54)
CIE-LCHlch(80.82, 55.28, 99.42°)
OKLaboklab(83.15% -0.0281 0.1269)
OKLCHoklch(83.15% 0.13 102.5)
XYZxyz(51.7421, 58.1389, 19.3206)
Luminance0.5814 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D8CB5F #5F6CD8
analogous
#D88E5F #D8CB5F #A8D85F
triadic
#D8CB5F #5FD8CB #CB5FD8
tetradic
#D8CB5F #5FD88E #5F6CD8 #D85FA8
square
#D8CB5F #5FD88E #5F6CD8 #D85FA8
split-complementary
#D8CB5F #5FA8D8 #8E5FD8
monochromatic
#988B25 #C9B931 #D8CB5F #E4DB90 #F0EBC1

Accessibility & contrast

On white

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

On black

12.63
#D8CB5F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D8CB5F
12.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D8CB5F#FFFFFF#000000##000000
##D8CB5F1.001.6612.6312.63
#FFFFFF1.661.0021.0021.00
#00000012.6321.001.001.00
##00000012.6321.001.001.00

Color blindness preview

Protanopia (red-blind)
#DBC554
Deuteranopia (green-blind)
#DFCB64
Tritanopia (blue-blind)
#E7BFB3
Achromatopsia (no color)
#C9C9C9

Design tokens & code

CSS
--color: #d8cb5f;
/* rgb */ color: rgb(216, 203, 95);
/* oklch */ color: oklch(83.2% 0.130 102.5);
Tailwind
colors: {
  custom: {
    50: '#e7da90',
    500: '#d8cb5f',
    950: '#000000',
  },
}
SCSS
$custom: #d8cb5f;
$custom-light: #e7da90;
$custom-dark: #000000;
JSON
{
  "hex": "#d8cb5f",
  "rgb": {
    "r": 216,
    "g": 203,
    "b": 95
  },
  "hsl": {
    "h": 53.554,
    "s": 60.804,
    "l": 60.98
  },
  "oklch": {
    "l": 0.8315,
    "c": 0.12996,
    "h": 102.5
  },
  "luminance": 0.58137
}

Semantic roles & 50–950 ramp

primary
#D8CB5F
secondary
#3F499C
accent
#2FC81D
background
#FFFEFC
surface
#FEFBF4
border
#D6D4CE
text
#16140D
muted
#85837F

Preview Lab

Preview with #D8CB5F

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

Preview Lab → · Contrast checker → · Palette generator →

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