#D8CA52#D8CA52

#D8CA52 is a very light, vivid yellow. Relative luminance 0.574; OKLCH L 82.8% C 0.140 H 102.7°. Best body text is #000000 at 12.49:1 contrast (WCAG AA passes).

Color values

HEX#D8CA52
RGBrgb(216, 202, 82)
HSLhsl(54, 63%, 58%)
HSVhsv(54, 62%, 85%)
CMYKcmyk(0%, 6.5%, 62%, 15.3%)
CIE-LABlab(80.43, -9.45, 59.88)
CIE-LCHlch(80.43, 60.62, 98.97°)
OKLaboklab(82.81% -0.0307 0.1366)
OKLCHoklch(82.81% 0.14 102.7)
XYZxyz(50.9644, 57.4512, 16.3856)
Luminance0.5745 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D8CA52 #5260D8
analogous
#D88752 #D8CA52 #A3D852
triadic
#D8CA52 #52D8CA #CA52D8
tetradic
#D8CA52 #52D887 #5260D8 #D852A3
square
#D8CA52 #52D887 #5260D8 #D852A3
split-complementary
#D8CA52 #52A3D8 #8752D8
monochromatic
#8F8420 #C1B22C #D8CA52 #E3D984 #EFE9B6

Accessibility & contrast

On white

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

On black

12.49
#D8CA52 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D8CA52
12.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D8CA52#FFFFFF#000000##000000
##D8CA521.001.6812.4912.49
#FFFFFF1.681.0021.0021.00
#00000012.4921.001.001.00
##00000012.4921.001.001.00

Color blindness preview

Protanopia (red-blind)
#DBC444
Deuteranopia (green-blind)
#DFCA59
Tritanopia (blue-blind)
#E7BDB1
Achromatopsia (no color)
#C8C8C8

Design tokens & code

CSS
--color: #d8ca52;
/* rgb */ color: rgb(216, 202, 82);
/* oklch */ color: oklch(82.8% 0.140 102.7);
Tailwind
colors: {
  custom: {
    50: '#e7d988',
    500: '#d8ca52',
    950: '#000000',
  },
}
SCSS
$custom: #d8ca52;
$custom-light: #e7d988;
$custom-dark: #000000;
JSON
{
  "hex": "#d8ca52",
  "rgb": {
    "r": 216,
    "g": 202,
    "b": 82
  },
  "hsl": {
    "h": 53.731,
    "s": 63.208,
    "l": 58.431
  },
  "oklch": {
    "l": 0.82807,
    "c": 0.14005,
    "h": 102.7
  },
  "luminance": 0.57449
}

Semantic roles & 50–950 ramp

primary
#D8CA52
secondary
#394395
accent
#53E642
background
#FFFEFC
surface
#FEFBF4
border
#D6D4CE
text
#16140C
muted
#85837F

Preview Lab

Preview with #D8CA52

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

Preview Lab → · Contrast checker → · Palette generator →

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