#D8D152#D8D152

#D8D152 is a very light, vivid yellow. Relative luminance 0.608; OKLCH L 84.3% C 0.147 H 106.1°. Best body text is #000000 at 13.16:1 contrast (WCAG AA passes).

Color values

HEX#D8D152
RGBrgb(216, 209, 82)
HSLhsl(57, 63%, 58%)
HSVhsv(57, 62%, 85%)
CMYKcmyk(0%, 3.2%, 62%, 15.3%)
CIE-LABlab(82.28, -12.99, 61.86)
CIE-LCHlch(82.28, 63.21, 101.86°)
OKLaboklab(84.27% -0.0408 0.1408)
OKLCHoklch(84.27% 0.147 106.1)
XYZxyz(52.6442, 60.8108, 16.9456)
Luminance0.6081 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D8D152 #5259D8
analogous
#D88E52 #D8D152 #9CD852
triadic
#D8D152 #52D8D1 #D152D8
tetradic
#D8D152 #52D88E #5259D8 #D8529C
square
#D8D152 #52D88E #5259D8 #D8529C
split-complementary
#D8D152 #529CD8 #8E52D8
monochromatic
#8F8920 #C1B92C #D8D152 #E3DE84 #EFECB6

Accessibility & contrast

On white

1.60
#D8D152 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.16
#D8D152 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D8D152
13.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D8D152#FFFFFF#000000##000000
##D8D1521.001.6013.1613.16
#FFFFFF1.601.0021.0021.00
#00000013.1621.001.001.00
##00000013.1621.001.001.00

Color blindness preview

Protanopia (red-blind)
#E2CA43
Deuteranopia (green-blind)
#E5CF59
Tritanopia (blue-blind)
#E7C4B6
Achromatopsia (no color)
#CDCDCD

Design tokens & code

CSS
--color: #d8d152;
/* rgb */ color: rgb(216, 209, 82);
/* oklch */ color: oklch(84.3% 0.147 106.1);
Tailwind
colors: {
  custom: {
    50: '#e7de88',
    500: '#d8d152',
    950: '#000000',
  },
}
SCSS
$custom: #d8d152;
$custom-light: #e7de88;
$custom-dark: #000000;
JSON
{
  "hex": "#d8d152",
  "rgb": {
    "r": 216,
    "g": 209,
    "b": 82
  },
  "hsl": {
    "h": 56.866,
    "s": 63.208,
    "l": 58.431
  },
  "oklch": {
    "l": 0.84274,
    "c": 0.14662,
    "h": 106.1
  },
  "luminance": 0.60809
}

Semantic roles & 50–950 ramp

primary
#D8D152
secondary
#393E95
accent
#4AE642
background
#FFFEFC
surface
#FEFCF4
border
#D6D5CE
text
#16150C
muted
#85847F

Preview Lab

Preview with #D8D152

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

Preview Lab → · Contrast checker → · Palette generator →

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