#D952EF#D952EF

#D952EF is a light, highly saturated purple. Relative luminance 0.270; OKLCH L 67.8% C 0.245 H 321.8°. Best body text is #000000 at 6.40:1 contrast (WCAG AA passes).

Color values

HEX#D952EF
RGBrgb(217, 82, 239)
HSLhsl(292, 83%, 63%)
HSVhsv(292, 66%, 94%)
CMYKcmyk(9.2%, 65.7%, 0%, 6.3%)
CIE-LABlab(58.99, 72.73, -54.40)
CIE-LCHlch(58.99, 90.83, 323.20°)
OKLaboklab(67.8% 0.1926 -0.1518)
OKLCHoklch(67.8% 0.245 321.8)
XYZxyz(47.2109, 27.0208, 84.3734)
Luminance0.2702 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D952EF #68EF52
analogous
#8A52EF #D952EF #EF52B7
triadic
#D952EF #EFD952 #52EFD9
tetradic
#D952EF #EF8A52 #68EF52 #52B7EF
square
#D952EF #EF8A52 #68EF52 #52B7EF
split-complementary
#D952EF #B7EF52 #52EF8A
monochromatic
#9F11B6 #CD1AEA #D952EF #E58AF4 #F2C2F9

Accessibility & contrast

On white

3.28
#D952EF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.40
#D952EF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D952EF
6.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D952EF#FFFFFF#000000##000000
##D952EF1.003.286.406.40
#FFFFFF3.281.0021.0021.00
#0000006.4021.001.001.00
##0000006.4021.001.001.00

Color blindness preview

Protanopia (red-blind)
#2484F4
Deuteranopia (green-blind)
#6593EB
Tritanopia (blue-blind)
#DB6D9A
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #d952ef;
/* rgb */ color: rgb(217, 82, 239);
/* oklch */ color: oklch(67.8% 0.245 321.8);
Tailwind
colors: {
  custom: {
    50: '#e88cf5',
    500: '#d952ef',
    950: '#000000',
  },
}
SCSS
$custom: #d952ef;
$custom-light: #e88cf5;
$custom-dark: #000000;
JSON
{
  "hex": "#d952ef",
  "rgb": {
    "r": 217,
    "g": 82,
    "b": 239
  },
  "hsl": {
    "h": 291.592,
    "s": 83.069,
    "l": 62.941
  },
  "oklch": {
    "l": 0.67797,
    "c": 0.24524,
    "h": 321.8
  },
  "luminance": 0.27018
}

Semantic roles & 50–950 ramp

primary
#D952EF
secondary
#BAEBB2
accent
#DF0624
background
#FEF9FF
surface
#FDF1FE
border
#D5CBD6
text
#170D17
muted
#857E85

Preview Lab

Preview with #D952EF

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

Preview Lab → · Contrast checker → · Palette generator →

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