#D852E1#D852E1

#D852E1 is a light, highly saturated purple. Relative luminance 0.261; OKLCH L 66.9% C 0.233 H 325.2°. Best body text is #000000 at 6.21:1 contrast (WCAG AA passes).

Color values

HEX#D852E1
RGBrgb(216, 82, 225)
HSLhsl(296, 70%, 60%)
HSVhsv(296, 64%, 88%)
CMYKcmyk(4%, 63.6%, 0%, 11.8%)
CIE-LABlab(58.11, 70.06, -47.98)
CIE-LCHlch(58.11, 84.92, 325.59°)
OKLaboklab(66.89% 0.1914 -0.1331)
OKLCHoklch(66.89% 0.233 325.2)
XYZxyz(44.9258, 26.0725, 73.8857)
Luminance0.2607 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D852E1 #5BE152
analogous
#9152E1 #D852E1 #E152A2
triadic
#D852E1 #E1D852 #52E1D8
tetradic
#D852E1 #E19152 #5BE152 #52A2E1
square
#D852E1 #E19152 #5BE152 #52A2E1
split-complementary
#D852E1 #A2E152 #52E191
monochromatic
#951B9D #C724D1 #D852E1 #E486EA #F0BAF3

Accessibility & contrast

On white

3.38
#D852E1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.21
#D852E1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D852E1
6.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D852E1#FFFFFF#000000##000000
##D852E11.003.386.216.21
#FFFFFF3.381.0021.0021.00
#0000006.2121.001.001.00
##0000006.2121.001.001.00

Color blindness preview

Protanopia (red-blind)
#3881E5
Deuteranopia (green-blind)
#6D91DD
Tritanopia (blue-blind)
#DD6793
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #d852e1;
/* rgb */ color: rgb(216, 82, 225);
/* oklch */ color: oklch(66.9% 0.233 325.2);
Tailwind
colors: {
  custom: {
    50: '#e78ceb',
    500: '#d852e1',
    950: '#000000',
  },
}
SCSS
$custom: #d852e1;
$custom-light: #e78ceb;
$custom-dark: #000000;
JSON
{
  "hex": "#d852e1",
  "rgb": {
    "r": 216,
    "g": 82,
    "b": 225
  },
  "hsl": {
    "h": 296.224,
    "s": 70.443,
    "l": 60.196
  },
  "oklch": {
    "l": 0.66887,
    "c": 0.23311,
    "h": 325.2
  },
  "luminance": 0.2607
}

Semantic roles & 50–950 ramp

primary
#D852E1
secondary
#AFE3AC
accent
#D2131F
background
#FEF9FE
surface
#FDF1FD
border
#D5CBD5
text
#160D16
muted
#847E84

Preview Lab

Preview with #D852E1

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

Preview Lab → · Contrast checker → · Palette generator →

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