#D152E7#D152E7

#D152E7 is a light, highly saturated purple. Relative luminance 0.254; OKLCH L 66.3% C 0.235 H 321.4°. Best body text is #000000 at 6.07:1 contrast (WCAG AA passes).

Color values

HEX#D152E7
RGBrgb(209, 82, 231)
HSLhsl(291, 76%, 61%)
HSVhsv(291, 65%, 91%)
CMYKcmyk(9.5%, 64.5%, 0%, 9.4%)
CIE-LABlab(57.43, 69.52, -52.49)
CIE-LCHlch(57.43, 87.11, 322.94°)
OKLaboklab(66.3% 0.1837 -0.1464)
OKLCHoklch(66.3% 0.235 321.4)
XYZxyz(43.7340, 25.3617, 78.1775)
Luminance0.2536 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D152E7 #68E752
analogous
#8752E7 #D152E7 #E752B3
triadic
#D152E7 #E7D152 #52E7D1
tetradic
#D152E7 #E78752 #68E752 #52B3E7
square
#D152E7 #E78752 #68E752 #52B3E7
split-complementary
#D152E7 #B3E752 #52E787
monochromatic
#9217A7 #C11FDD #D152E7 #DF88EE #EEBDF6

Accessibility & contrast

On white

3.46
#D152E7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.07
#D152E7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D152E7
6.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D152E7#FFFFFF#000000##000000
##D152E71.003.466.076.07
#FFFFFF3.461.0021.0021.00
#0000006.0721.001.001.00
##0000006.0721.001.001.00

Color blindness preview

Protanopia (red-blind)
#2981EB
Deuteranopia (green-blind)
#638FE3
Tritanopia (blue-blind)
#D36B96
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #d152e7;
/* rgb */ color: rgb(209, 82, 231);
/* oklch */ color: oklch(66.3% 0.235 321.4);
Tailwind
colors: {
  custom: {
    50: '#e38bef',
    500: '#d152e7',
    950: '#000000',
  },
}
SCSS
$custom: #d152e7;
$custom-light: #e38bef;
$custom-dark: #000000;
JSON
{
  "hex": "#d152e7",
  "rgb": {
    "r": 209,
    "g": 82,
    "b": 231
  },
  "hsl": {
    "h": 291.141,
    "s": 75.635,
    "l": 61.373
  },
  "oklch": {
    "l": 0.66298,
    "c": 0.2349,
    "h": 321.4
  },
  "luminance": 0.25359
}

Semantic roles & 50–950 ramp

primary
#D152E7
secondary
#B7E6AF
accent
#D80E2C
background
#FEF9FE
surface
#FDF1FD
border
#D5CBD5
text
#160D16
muted
#847E84

Preview Lab

Preview with #D152E7

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

Preview Lab → · Contrast checker → · Palette generator →

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