#D852EF#D852EF

#D852EF is a light, highly saturated purple. Relative luminance 0.269; OKLCH L 67.7% C 0.245 H 321.5°. Best body text is #000000 at 6.37:1 contrast (WCAG AA passes).

Color values

HEX#D852EF
RGBrgb(216, 82, 239)
HSLhsl(291, 83%, 63%)
HSVhsv(291, 66%, 94%)
CMYKcmyk(9.6%, 65.7%, 0%, 6.3%)
CIE-LABlab(58.85, 72.51, -54.64)
CIE-LCHlch(58.85, 90.79, 323.00°)
OKLaboklab(67.67% 0.1915 -0.1525)
OKLCHoklch(67.67% 0.245 321.5)
XYZxyz(46.9145, 26.8680, 84.3595)
Luminance0.2687 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D852EF #69EF52
analogous
#8952EF #D852EF #EF52B8
triadic
#D852EF #EFD852 #52EFD8
tetradic
#D852EF #EF8952 #69EF52 #52B8EF
square
#D852EF #EF8952 #69EF52 #52B8EF
split-complementary
#D852EF #B8EF52 #52EF89
monochromatic
#9E11B6 #CB1AEA #D852EF #E58AF4 #F1C2F9

Accessibility & contrast

On white

3.30
#D852EF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.37
#D852EF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D852EF
6.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D852EF#FFFFFF#000000##000000
##D852EF1.003.306.376.37
#FFFFFF3.301.0021.0021.00
#0000006.3721.001.001.00
##0000006.3721.001.001.00

Color blindness preview

Protanopia (red-blind)
#2384F4
Deuteranopia (green-blind)
#6493EB
Tritanopia (blue-blind)
#DA6D9A
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #d852ef;
/* rgb */ color: rgb(216, 82, 239);
/* oklch */ color: oklch(67.7% 0.245 321.5);
Tailwind
colors: {
  custom: {
    50: '#e88cf5',
    500: '#d852ef',
    950: '#000000',
  },
}
SCSS
$custom: #d852ef;
$custom-light: #e88cf5;
$custom-dark: #000000;
JSON
{
  "hex": "#d852ef",
  "rgb": {
    "r": 216,
    "g": 82,
    "b": 239
  },
  "hsl": {
    "h": 291.21,
    "s": 83.069,
    "l": 62.941
  },
  "oklch": {
    "l": 0.67666,
    "c": 0.2448,
    "h": 321.5
  },
  "luminance": 0.26866
}

Semantic roles & 50–950 ramp

primary
#D852EF
secondary
#BAEBB2
accent
#DF0626
background
#FEF9FF
surface
#FDF1FE
border
#D5CBD6
text
#160D17
muted
#847E85

Preview Lab

Preview with #D852EF

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

Preview Lab → · Contrast checker → · Palette generator →

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