#D8D252#D8D252

#D8D252 is a very light, vivid yellow. Relative luminance 0.613; OKLCH L 84.5% C 0.148 H 106.6°. Best body text is #000000 at 13.26:1 contrast (WCAG AA passes).

Color values

HEX#D8D252
RGBrgb(216, 210, 82)
HSLhsl(57, 63%, 58%)
HSVhsv(57, 62%, 85%)
CMYKcmyk(0%, 2.8%, 62%, 15.3%)
CIE-LABlab(82.54, -13.49, 62.15)
CIE-LCHlch(82.54, 63.59, 102.25°)
OKLaboklab(84.49% -0.0422 0.1414)
OKLCHoklch(84.49% 0.148 106.6)
XYZxyz(52.8903, 61.3030, 17.0276)
Luminance0.6130 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D8D252 #5258D8
analogous
#D88F52 #D8D252 #9BD852
triadic
#D8D252 #52D8D2 #D252D8
tetradic
#D8D252 #52D88F #5258D8 #D8529B
square
#D8D252 #52D88F #5258D8 #D8529B
split-complementary
#D8D252 #529BD8 #8F52D8
monochromatic
#8F8A20 #C1BB2C #D8D252 #E3DF84 #EFECB6

Accessibility & contrast

On white

1.58
#D8D252 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.26
#D8D252 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D8D252
13.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D8D252#FFFFFF#000000##000000
##D8D2521.001.5813.2613.26
#FFFFFF1.581.0021.0021.00
#00000013.2621.001.001.00
##00000013.2621.001.001.00

Color blindness preview

Protanopia (red-blind)
#E3CA42
Deuteranopia (green-blind)
#E6D05A
Tritanopia (blue-blind)
#E7C5B7
Achromatopsia (no color)
#CDCDCD

Design tokens & code

CSS
--color: #d8d252;
/* rgb */ color: rgb(216, 210, 82);
/* oklch */ color: oklch(84.5% 0.148 106.6);
Tailwind
colors: {
  custom: {
    50: '#e7df88',
    500: '#d8d252',
    950: '#000000',
  },
}
SCSS
$custom: #d8d252;
$custom-light: #e7df88;
$custom-dark: #000000;
JSON
{
  "hex": "#d8d252",
  "rgb": {
    "r": 216,
    "g": 210,
    "b": 82
  },
  "hsl": {
    "h": 57.313,
    "s": 63.208,
    "l": 58.431
  },
  "oklch": {
    "l": 0.84485,
    "c": 0.1476,
    "h": 106.6
  },
  "luminance": 0.61301
}

Semantic roles & 50–950 ramp

primary
#D8D252
secondary
#393E95
accent
#49E642
background
#FFFEFC
surface
#FEFCF4
border
#D6D5CE
text
#16150C
muted
#85847F

Preview Lab

Preview with #D8D252

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

Preview Lab → · Contrast checker → · Palette generator →

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