#D8C652#D8C652

#D8C652 is a light, vivid yellow. Relative luminance 0.556; OKLCH L 82.0% C 0.137 H 100.5°. Best body text is #000000 at 12.12:1 contrast (WCAG AA passes).

Color values

HEX#D8C652
RGBrgb(216, 198, 82)
HSLhsl(52, 63%, 58%)
HSVhsv(52, 62%, 85%)
CMYKcmyk(0%, 8.3%, 62%, 15.3%)
CIE-LABlab(79.38, -7.41, 58.75)
CIE-LCHlch(79.38, 59.21, 97.19°)
OKLaboklab(81.98% -0.0249 0.1342)
OKLCHoklch(81.98% 0.137 100.5)
XYZxyz(50.0380, 55.5984, 16.0768)
Luminance0.5560 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D8C652 #5264D8
analogous
#D88352 #D8C652 #A7D852
triadic
#D8C652 #52D8C6 #C652D8
tetradic
#D8C652 #52D883 #5264D8 #D852A7
square
#D8C652 #52D883 #5264D8 #D852A7
split-complementary
#D8C652 #52A7D8 #8352D8
monochromatic
#8F8020 #C1AD2C #D8C652 #E3D684 #EFE7B6

Accessibility & contrast

On white

1.73
#D8C652 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.12
#D8C652 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D8C652
12.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D8C652#FFFFFF#000000##000000
##D8C6521.001.7312.1212.12
#FFFFFF1.731.0021.0021.00
#00000012.1221.001.001.00
##00000012.1221.001.001.00

Color blindness preview

Protanopia (red-blind)
#D7C145
Deuteranopia (green-blind)
#DCC858
Tritanopia (blue-blind)
#E8B9AD
Achromatopsia (no color)
#C5C5C5

Design tokens & code

CSS
--color: #d8c652;
/* rgb */ color: rgb(216, 198, 82);
/* oklch */ color: oklch(82.0% 0.137 100.5);
Tailwind
colors: {
  custom: {
    50: '#e7d787',
    500: '#d8c652',
    950: '#000000',
  },
}
SCSS
$custom: #d8c652;
$custom-light: #e7d787;
$custom-dark: #000000;
JSON
{
  "hex": "#d8c652",
  "rgb": {
    "r": 216,
    "g": 198,
    "b": 82
  },
  "hsl": {
    "h": 51.94,
    "s": 63.208,
    "l": 58.431
  },
  "oklch": {
    "l": 0.81975,
    "c": 0.13652,
    "h": 100.5
  },
  "luminance": 0.55596
}

Semantic roles & 50–950 ramp

primary
#D8C652
secondary
#394695
accent
#58E642
background
#FFFEFC
surface
#FEFBF3
border
#D6D4CD
text
#16140C
muted
#85837F

Preview Lab

Preview with #D8C652

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

Preview Lab → · Contrast checker → · Palette generator →

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