#D8DF52#D8DF52

#D8DF52 is a very light, vivid yellow. Relative luminance 0.680; OKLCH L 87.2% C 0.161 H 112.0°. Best body text is #000000 at 14.60:1 contrast (WCAG AA passes).

Color values

HEX#D8DF52
RGBrgb(216, 223, 82)
HSLhsl(63, 69%, 60%)
HSVhsv(63, 63%, 87%)
CMYKcmyk(3.1%, 0%, 63.2%, 12.5%)
CIE-LABlab(86.00, -19.91, 65.81)
CIE-LCHlch(86.00, 68.75, 106.83°)
OKLaboklab(87.24% -0.0603 0.1492)
OKLCHoklch(87.24% 0.161 112)
XYZxyz(56.2312, 67.9847, 18.1412)
Luminance0.6798 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D8DF52 #5952DF
analogous
#DFA052 #D8DF52 #91DF52
triadic
#D8DF52 #52D8DF #DF52D8
tetradic
#D8DF52 #52DFA0 #5952DF #DF5291
square
#D8DF52 #52DFA0 #5952DF #DF5291
split-complementary
#D8DF52 #5291DF #A052DF
monochromatic
#949A1D #C5CE26 #D8DF52 #E4E986 #EFF2B9

Accessibility & contrast

On white

1.44
#D8DF52 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

14.60
#D8DF52 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D8DF52
14.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D8DF52#FFFFFF#000000##000000
##D8DF521.001.4414.6014.60
#FFFFFF1.441.0021.0021.00
#00000014.6021.001.001.00
##00000014.6021.001.001.00

Color blindness preview

Protanopia (red-blind)
#EFD540
Deuteranopia (green-blind)
#F0D95B
Tritanopia (blue-blind)
#E6D2C2
Achromatopsia (no color)
#D7D7D7

Design tokens & code

CSS
--color: #d8df52;
/* rgb */ color: rgb(216, 223, 82);
/* oklch */ color: oklch(87.2% 0.161 112.0);
Tailwind
colors: {
  custom: {
    50: '#e7e889',
    500: '#d8df52',
    950: '#000000',
  },
}
SCSS
$custom: #d8df52;
$custom-light: #e7e889;
$custom-dark: #000000;
JSON
{
  "hex": "#d8df52",
  "rgb": {
    "r": 216,
    "g": 223,
    "b": 82
  },
  "hsl": {
    "h": 62.979,
    "s": 68.78,
    "l": 59.804
  },
  "oklch": {
    "l": 0.87244,
    "c": 0.1609,
    "h": 112
  },
  "luminance": 0.67983
}

Semantic roles & 50–950 ramp

primary
#D8DF52
secondary
#3C379E
accent
#3CEC45
background
#FFFEFC
surface
#FEFCF4
border
#D6D5CE
text
#16160C
muted
#85847F

Preview Lab

Preview with #D8DF52

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

Preview Lab → · Contrast checker → · Palette generator →

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