#D8D452#D8D452

#D8D452 is a very light, vivid yellow. Relative luminance 0.623; OKLCH L 84.9% C 0.150 H 107.5°. Best body text is #000000 at 13.46:1 contrast (WCAG AA passes).

Color values

HEX#D8D452
RGBrgb(216, 212, 82)
HSLhsl(58, 63%, 58%)
HSVhsv(58, 62%, 85%)
CMYKcmyk(0%, 1.9%, 62%, 15.3%)
CIE-LABlab(83.07, -14.49, 62.71)
CIE-LCHlch(83.07, 64.36, 103.01°)
OKLaboklab(84.91% -0.045 0.1426)
OKLCHoklch(84.91% 0.15 107.5)
XYZxyz(53.3871, 62.2967, 17.1932)
Luminance0.6230 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D8D452 #5256D8
analogous
#D89152 #D8D452 #99D852
triadic
#D8D452 #52D8D4 #D452D8
tetradic
#D8D452 #52D891 #5256D8 #D85299
square
#D8D452 #52D891 #5256D8 #D85299
split-complementary
#D8D452 #5299D8 #9152D8
monochromatic
#8F8C20 #C1BD2C #D8D452 #E3E084 #EFEDB6

Accessibility & contrast

On white

1.56
#D8D452 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.46
#D8D452 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D8D452
13.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D8D452#FFFFFF#000000##000000
##D8D4521.001.5613.4613.46
#FFFFFF1.561.0021.0021.00
#00000013.4621.001.001.00
##00000013.4621.001.001.00

Color blindness preview

Protanopia (red-blind)
#E5CC42
Deuteranopia (green-blind)
#E7D15A
Tritanopia (blue-blind)
#E7C7B9
Achromatopsia (no color)
#CFCFCF

Design tokens & code

CSS
--color: #d8d452;
/* rgb */ color: rgb(216, 212, 82);
/* oklch */ color: oklch(84.9% 0.150 107.5);
Tailwind
colors: {
  custom: {
    50: '#e7e188',
    500: '#d8d452',
    950: '#000000',
  },
}
SCSS
$custom: #d8d452;
$custom-light: #e7e188;
$custom-dark: #000000;
JSON
{
  "hex": "#d8d452",
  "rgb": {
    "r": 216,
    "g": 212,
    "b": 82
  },
  "hsl": {
    "h": 58.209,
    "s": 63.208,
    "l": 58.431
  },
  "oklch": {
    "l": 0.84907,
    "c": 0.14956,
    "h": 107.5
  },
  "luminance": 0.62295
}

Semantic roles & 50–950 ramp

primary
#D8D452
secondary
#393C95
accent
#46E642
background
#FFFEFC
surface
#FEFCF4
border
#D6D5CE
text
#16150C
muted
#85847F

Preview Lab

Preview with #D8D452

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

Preview Lab → · Contrast checker → · Palette generator →

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