#D152E2#D152E2

#D152E2 is a light, highly saturated purple. Relative luminance 0.251; OKLCH L 66.0% C 0.231 H 322.8°. Best body text is #000000 at 6.02:1 contrast (WCAG AA passes).

Color values

HEX#D152E2
RGBrgb(209, 82, 226)
HSLhsl(293, 71%, 60%)
HSVhsv(293, 64%, 89%)
CMYKcmyk(7.5%, 63.7%, 0%, 11.4%)
CIE-LABlab(57.16, 68.62, -50.11)
CIE-LCHlch(57.16, 84.97, 323.86°)
OKLaboklab(66.02% 0.1837 -0.1395)
OKLCHoklch(66.02% 0.231 322.8)
XYZxyz(43.0379, 25.0832, 74.5114)
Luminance0.2508 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D152E2 #63E252
analogous
#8952E2 #D152E2 #E252AB
triadic
#D152E2 #E2D152 #52E2D1
tetradic
#D152E2 #E28952 #63E252 #52ABE2
square
#D152E2 #E28952 #63E252 #52ABE2
split-complementary
#D152E2 #ABE252 #52E289
monochromatic
#8F1B9F #BF23D3 #D152E2 #DF86EB #EDBBF4

Accessibility & contrast

On white

3.49
#D152E2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.02
#D152E2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D152E2
6.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D152E2#FFFFFF#000000##000000
##D152E21.003.496.026.02
#FFFFFF3.491.0021.0021.00
#0000006.0221.001.001.00
##0000006.0221.001.001.00

Color blindness preview

Protanopia (red-blind)
#3080E6
Deuteranopia (green-blind)
#668EDE
Tritanopia (blue-blind)
#D46993
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #d152e2;
/* rgb */ color: rgb(209, 82, 226);
/* oklch */ color: oklch(66.0% 0.231 322.8);
Tailwind
colors: {
  custom: {
    50: '#e38bec',
    500: '#d152e2',
    950: '#000000',
  },
}
SCSS
$custom: #d152e2;
$custom-light: #e38bec;
$custom-dark: #000000;
JSON
{
  "hex": "#d152e2",
  "rgb": {
    "r": 209,
    "g": 82,
    "b": 226
  },
  "hsl": {
    "h": 292.917,
    "s": 71.287,
    "l": 60.392
  },
  "oklch": {
    "l": 0.66016,
    "c": 0.23061,
    "h": 322.8
  },
  "luminance": 0.25081
}

Semantic roles & 50–950 ramp

primary
#D152E2
secondary
#B3E3AC
accent
#D31229
background
#FEF8FE
surface
#FDF0FD
border
#D5CBD5
text
#160D16
muted
#847D84

Preview Lab

Preview with #D152E2

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

Preview Lab → · Contrast checker → · Palette generator →

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