#D5D852#D5D852

#D5D852 is a very light, vivid yellow. Relative luminance 0.639; OKLCH L 85.5% C 0.154 H 110.5°. Best body text is #000000 at 13.77:1 contrast (WCAG AA passes).

Color values

HEX#D5D852
RGBrgb(213, 216, 82)
HSLhsl(61, 63%, 58%)
HSVhsv(61, 62%, 85%)
CMYKcmyk(1.4%, 0%, 62%, 15.3%)
CIE-LABlab(83.90, -17.70, 63.52)
CIE-LCHlch(83.90, 65.94, 105.57°)
OKLaboklab(85.51% -0.0539 0.1444)
OKLCHoklch(85.51% 0.154 110.5)
XYZxyz(53.5210, 63.8684, 17.4895)
Luminance0.6387 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D5D852 #5552D8
analogous
#D89852 #D5D852 #92D852
triadic
#D5D852 #52D5D8 #D852D5
tetradic
#D5D852 #52D898 #5552D8 #D85292
square
#D5D852 #52D898 #5552D8 #D85292
split-complementary
#D5D852 #5292D8 #9852D8
monochromatic
#8D8F20 #BEC12C #D5D852 #E1E384 #EDEFB6

Accessibility & contrast

On white

1.52
#D5D852 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.77
#D5D852 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D5D852
13.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D5D852#FFFFFF#000000##000000
##D5D8521.001.5213.7713.77
#FFFFFF1.521.0021.0021.00
#00000013.7721.001.001.00
##00000013.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#E8CF41
Deuteranopia (green-blind)
#E9D35A
Tritanopia (blue-blind)
#E3CBBC
Achromatopsia (no color)
#D1D1D1

Design tokens & code

CSS
--color: #d5d852;
/* rgb */ color: rgb(213, 216, 82);
/* oklch */ color: oklch(85.5% 0.154 110.5);
Tailwind
colors: {
  custom: {
    50: '#e5e389',
    500: '#d5d852',
    950: '#000000',
  },
}
SCSS
$custom: #d5d852;
$custom-light: #e5e389;
$custom-dark: #000000;
JSON
{
  "hex": "#d5d852",
  "rgb": {
    "r": 213,
    "g": 216,
    "b": 82
  },
  "hsl": {
    "h": 61.343,
    "s": 63.208,
    "l": 58.431
  },
  "oklch": {
    "l": 0.85508,
    "c": 0.15415,
    "h": 110.5
  },
  "luminance": 0.63867
}

Semantic roles & 50–950 ramp

primary
#D5D852
secondary
#3C3995
accent
#42E645
background
#FEFEFC
surface
#FDFCF4
border
#D5D5CE
text
#16150C
muted
#84847F

Preview Lab

Preview with #D5D852

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

Preview Lab → · Contrast checker → · Palette generator →

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