#D8C852#D8C852

#D8C852 is a very light, vivid yellow. Relative luminance 0.565; OKLCH L 82.4% C 0.138 H 101.6°. Best body text is #000000 at 12.30:1 contrast (WCAG AA passes).

Color values

HEX#D8C852
RGBrgb(216, 200, 82)
HSLhsl(53, 63%, 58%)
HSVhsv(53, 62%, 85%)
CMYKcmyk(0%, 7.4%, 62%, 15.3%)
CIE-LABlab(79.91, -8.43, 59.32)
CIE-LCHlch(79.91, 59.91, 98.09°)
OKLaboklab(82.39% -0.0278 0.1354)
OKLCHoklch(82.39% 0.138 101.6)
XYZxyz(50.4981, 56.5187, 16.2302)
Luminance0.5652 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D8C852 #5262D8
analogous
#D88552 #D8C852 #A5D852
triadic
#D8C852 #52D8C8 #C852D8
tetradic
#D8C852 #52D885 #5262D8 #D852A5
square
#D8C852 #52D885 #5262D8 #D852A5
split-complementary
#D8C852 #52A5D8 #8552D8
monochromatic
#8F8220 #C1AF2C #D8C852 #E3D884 #EFE8B6

Accessibility & contrast

On white

1.71
#D8C852 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.30
#D8C852 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D8C852
12.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D8C852#FFFFFF#000000##000000
##D8C8521.001.7112.3012.30
#FFFFFF1.711.0021.0021.00
#00000012.3021.001.001.00
##00000012.3021.001.001.00

Color blindness preview

Protanopia (red-blind)
#D9C244
Deuteranopia (green-blind)
#DEC958
Tritanopia (blue-blind)
#E7BBAF
Achromatopsia (no color)
#C6C6C6

Design tokens & code

CSS
--color: #d8c852;
/* rgb */ color: rgb(216, 200, 82);
/* oklch */ color: oklch(82.4% 0.138 101.6);
Tailwind
colors: {
  custom: {
    50: '#e7d887',
    500: '#d8c852',
    950: '#000000',
  },
}
SCSS
$custom: #d8c852;
$custom-light: #e7d887;
$custom-dark: #000000;
JSON
{
  "hex": "#d8c852",
  "rgb": {
    "r": 216,
    "g": 200,
    "b": 82
  },
  "hsl": {
    "h": 52.836,
    "s": 63.208,
    "l": 58.431
  },
  "oklch": {
    "l": 0.82391,
    "c": 0.13827,
    "h": 101.6
  },
  "luminance": 0.56517
}

Semantic roles & 50–950 ramp

primary
#D8C852
secondary
#394495
accent
#55E642
background
#FFFEFC
surface
#FEFBF4
border
#D6D4CE
text
#16140C
muted
#85837F

Preview Lab

Preview with #D8C852

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

Preview Lab → · Contrast checker → · Palette generator →

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