#D852F5#D852F5

#D852F5 is a light, highly saturated purple. Relative luminance 0.272; OKLCH L 68.0% C 0.250 H 320.0°. Best body text is #000000 at 6.45:1 contrast (WCAG AA passes).

Color values

HEX#D852F5
RGBrgb(216, 82, 245)
HSLhsl(289, 89%, 64%)
HSVhsv(289, 67%, 96%)
CMYKcmyk(11.8%, 66.5%, 0%, 3.9%)
CIE-LABlab(59.19, 73.59, -57.44)
CIE-LCHlch(59.19, 93.35, 322.02°)
OKLaboklab(68.01% 0.1914 -0.1607)
OKLCHoklch(68.01% 0.25 320)
XYZxyz(47.8156, 27.2284, 89.1055)
Luminance0.2723 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D852F5 #6FF552
analogous
#8752F5 #D852F5 #F552C1
triadic
#D852F5 #F5D852 #52F5D8
tetradic
#D852F5 #F58752 #6FF552 #52C1F5
square
#D852F5 #F58752 #6FF552 #52C1F5
split-complementary
#D852F5 #C1F552 #52F587
monochromatic
#A10BC1 #CB18F2 #D852F5 #E58CF8 #F2C6FC

Accessibility & contrast

On white

3.26
#D852F5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.45
#D852F5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D852F5
6.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D852F5#FFFFFF#000000##000000
##D852F51.003.266.456.45
#FFFFFF3.261.0021.0021.00
#0000006.4521.001.001.00
##0000006.4521.001.001.00

Color blindness preview

Protanopia (red-blind)
#1385FA
Deuteranopia (green-blind)
#6093F1
Tritanopia (blue-blind)
#D96F9D
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #d852f5;
/* rgb */ color: rgb(216, 82, 245);
/* oklch */ color: oklch(68.0% 0.250 320.0);
Tailwind
colors: {
  custom: {
    50: '#e88cf9',
    500: '#d852f5',
    950: '#000000',
  },
}
SCSS
$custom: #d852f5;
$custom-light: #e88cf9;
$custom-dark: #000000;
JSON
{
  "hex": "#d852f5",
  "rgb": {
    "r": 216,
    "g": 82,
    "b": 245
  },
  "hsl": {
    "h": 289.325,
    "s": 89.071,
    "l": 64.118
  },
  "oklch": {
    "l": 0.68013,
    "c": 0.2499,
    "h": 320
  },
  "luminance": 0.27226
}

Semantic roles & 50–950 ramp

primary
#D852F5
secondary
#BFEEB5
accent
#E60029
background
#FEF9FF
surface
#FDF1FF
border
#D5CBD7
text
#170D17
muted
#857E85

Preview Lab

Preview with #D852F5

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

Preview Lab → · Contrast checker → · Palette generator →

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