#D8CA5A#D8CA5A

#D8CA5A is a very light, vivid yellow. Relative luminance 0.576; OKLCH L 82.9% C 0.133 H 102.2°. Best body text is #000000 at 12.52:1 contrast (WCAG AA passes).

Color values

HEX#D8CA5A
RGBrgb(216, 202, 90)
HSLhsl(53, 62%, 60%)
HSVhsv(53, 58%, 85%)
CMYKcmyk(0%, 6.5%, 58.3%, 15.3%)
CIE-LABlab(80.50, -8.91, 56.45)
CIE-LCHlch(80.50, 57.15, 98.97°)
OKLaboklab(82.89% -0.0283 0.1304)
OKLCHoklch(82.89% 0.133 102.2)
XYZxyz(51.2867, 57.5801, 18.0834)
Luminance0.5758 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D8CA5A #5A68D8
analogous
#D88B5A #D8CA5A #A7D85A
triadic
#D8CA5A #5AD8CA #CA5AD8
tetradic
#D8CA5A #5AD88B #5A68D8 #D85AA7
square
#D8CA5A #5AD88B #5A68D8 #D85AA7
split-complementary
#D8CA5A #5AA7D8 #8B5AD8
monochromatic
#958823 #C6B52F #D8CA5A #E4DA8B #EFEABD

Accessibility & contrast

On white

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

On black

12.52
#D8CA5A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D8CA5A
12.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D8CA5A#FFFFFF#000000##000000
##D8CA5A1.001.6812.5212.52
#FFFFFF1.681.0021.0021.00
#00000012.5221.001.001.00
##00000012.5221.001.001.00

Color blindness preview

Protanopia (red-blind)
#DBC44E
Deuteranopia (green-blind)
#DFCB60
Tritanopia (blue-blind)
#E7BDB2
Achromatopsia (no color)
#C8C8C8

Design tokens & code

CSS
--color: #d8ca5a;
/* rgb */ color: rgb(216, 202, 90);
/* oklch */ color: oklch(82.9% 0.133 102.2);
Tailwind
colors: {
  custom: {
    50: '#e7d98c',
    500: '#d8ca5a',
    950: '#000000',
  },
}
SCSS
$custom: #d8ca5a;
$custom-light: #e7d98c;
$custom-dark: #000000;
JSON
{
  "hex": "#d8ca5a",
  "rgb": {
    "r": 216,
    "g": 202,
    "b": 90
  },
  "hsl": {
    "h": 53.333,
    "s": 61.765,
    "l": 60
  },
  "oklch": {
    "l": 0.82888,
    "c": 0.13343,
    "h": 102.2
  },
  "luminance": 0.57578
}

Semantic roles & 50–950 ramp

primary
#D8CA5A
secondary
#3D4799
accent
#55E543
background
#FFFEFC
surface
#FEFBF4
border
#D6D4CE
text
#16140C
muted
#85837F

Preview Lab

Preview with #D8CA5A

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

Preview Lab → · Contrast checker → · Palette generator →

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