#D8D852#D8D852

#D8D852 is a very light, vivid yellow. Relative luminance 0.643; OKLCH L 85.8% C 0.154 H 109.2°. Best body text is #000000 at 13.86:1 contrast (WCAG AA passes).

Color values

HEX#D8D852
RGBrgb(216, 216, 82)
HSLhsl(60, 63%, 58%)
HSVhsv(60, 62%, 85%)
CMYKcmyk(0%, 0%, 62%, 15.3%)
CIE-LABlab(84.13, -16.47, 63.84)
CIE-LCHlch(84.13, 65.93, 104.47°)
OKLaboklab(85.75% -0.0506 0.145)
OKLCHoklch(85.75% 0.154 109.2)
XYZxyz(54.3995, 64.3214, 17.5307)
Luminance0.6432 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D8D852 #5252D8
analogous
#D89552 #D8D852 #95D852
triadic
#D8D852 #52D8D8 #D852D8
tetradic
#D8D852 #52D895 #5252D8 #D85295
square
#D8D852 #52D895 #5252D8 #D85295
split-complementary
#D8D852 #5295D8 #9552D8
monochromatic
#8F8F20 #C1C12C #D8D852 #E3E384 #EFEFB6

Accessibility & contrast

On white

1.51
#D8D852 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.86
#D8D852 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D8D852
13.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D8D852#FFFFFF#000000##000000
##D8D8521.001.5113.8613.86
#FFFFFF1.511.0021.0021.00
#00000013.8621.001.001.00
##00000013.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#E8CF41
Deuteranopia (green-blind)
#EAD45A
Tritanopia (blue-blind)
#E6CBBC
Achromatopsia (no color)
#D2D2D2

Design tokens & code

CSS
--color: #d8d852;
/* rgb */ color: rgb(216, 216, 82);
/* oklch */ color: oklch(85.8% 0.154 109.2);
Tailwind
colors: {
  custom: {
    50: '#e7e389',
    500: '#d8d852',
    950: '#000000',
  },
}
SCSS
$custom: #d8d852;
$custom-light: #e7e389;
$custom-dark: #000000;
JSON
{
  "hex": "#d8d852",
  "rgb": {
    "r": 216,
    "g": 216,
    "b": 82
  },
  "hsl": {
    "h": 60,
    "s": 63.208,
    "l": 58.431
  },
  "oklch": {
    "l": 0.85753,
    "c": 0.1536,
    "h": 109.2
  },
  "luminance": 0.6432
}

Semantic roles & 50–950 ramp

primary
#D8D852
secondary
#393995
accent
#42E642
background
#FFFEFC
surface
#FEFCF4
border
#D6D5CE
text
#16150C
muted
#85847F

Preview Lab

Preview with #D8D852

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

Preview Lab → · Contrast checker → · Palette generator →

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