#D8CB52#D8CB52

#D8CB52 is a very light, vivid yellow. Relative luminance 0.579; OKLCH L 83.0% C 0.141 H 103.2°. Best body text is #000000 at 12.58:1 contrast (WCAG AA passes).

Color values

HEX#D8CB52
RGBrgb(216, 203, 82)
HSLhsl(54, 63%, 58%)
HSVhsv(54, 62%, 85%)
CMYKcmyk(0%, 6%, 62%, 15.3%)
CIE-LABlab(80.70, -9.96, 60.17)
CIE-LCHlch(80.70, 60.98, 99.40°)
OKLaboklab(83.02% -0.0322 0.1372)
OKLCHoklch(83.02% 0.141 103.2)
XYZxyz(51.1997, 57.9219, 16.4641)
Luminance0.5792 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D8CB52 #525FD8
analogous
#D88852 #D8CB52 #A2D852
triadic
#D8CB52 #52D8CB #CB52D8
tetradic
#D8CB52 #52D888 #525FD8 #D852A2
square
#D8CB52 #52D888 #525FD8 #D852A2
split-complementary
#D8CB52 #52A2D8 #8852D8
monochromatic
#8F8520 #C1B32C #D8CB52 #E3DA84 #EFE9B6

Accessibility & contrast

On white

1.67
#D8CB52 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.58
#D8CB52 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D8CB52
12.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D8CB52#FFFFFF#000000##000000
##D8CB521.001.6712.5812.58
#FFFFFF1.671.0021.0021.00
#00000012.5821.001.001.00
##00000012.5821.001.001.00

Color blindness preview

Protanopia (red-blind)
#DCC544
Deuteranopia (green-blind)
#E0CB59
Tritanopia (blue-blind)
#E7BEB1
Achromatopsia (no color)
#C8C8C8

Design tokens & code

CSS
--color: #d8cb52;
/* rgb */ color: rgb(216, 203, 82);
/* oklch */ color: oklch(83.0% 0.141 103.2);
Tailwind
colors: {
  custom: {
    50: '#e7da88',
    500: '#d8cb52',
    950: '#000000',
  },
}
SCSS
$custom: #d8cb52;
$custom-light: #e7da88;
$custom-dark: #000000;
JSON
{
  "hex": "#d8cb52",
  "rgb": {
    "r": 216,
    "g": 203,
    "b": 82
  },
  "hsl": {
    "h": 54.179,
    "s": 63.208,
    "l": 58.431
  },
  "oklch": {
    "l": 0.83016,
    "c": 0.14096,
    "h": 103.2
  },
  "luminance": 0.5792
}

Semantic roles & 50–950 ramp

primary
#D8CB52
secondary
#394295
accent
#52E642
background
#FFFEFC
surface
#FEFBF4
border
#D6D4CE
text
#16140C
muted
#85837F

Preview Lab

Preview with #D8CB52

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

Preview Lab → · Contrast checker → · Palette generator →

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