#D252EC#D252EC

#D252EC is a light, highly saturated purple. Relative luminance 0.258; OKLCH L 66.7% C 0.240 H 320.5°. Best body text is #000000 at 6.16:1 contrast (WCAG AA passes).

Color values

HEX#D252EC
RGBrgb(210, 82, 236)
HSLhsl(290, 80%, 62%)
HSVhsv(290, 65%, 93%)
CMYKcmyk(11%, 65.3%, 0%, 7.5%)
CIE-LABlab(57.84, 70.65, -54.62)
CIE-LCHlch(57.84, 89.30, 322.29°)
OKLaboklab(66.71% 0.1848 -0.1526)
OKLCHoklch(66.71% 0.24 320.5)
XYZxyz(44.7341, 25.7946, 81.9631)
Luminance0.2579 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D252EC #6CEC52
analogous
#8552EC #D252EC #EC52B9
triadic
#D252EC #ECD252 #52ECD2
tetradic
#D252EC #EC8552 #6CEC52 #52B9EC
square
#D252EC #EC8552 #6CEC52 #52B9EC
split-complementary
#D252EC #B9EC52 #52EC85
monochromatic
#9613B0 #C41BE6 #D252EC #E089F2 #EFC0F8

Accessibility & contrast

On white

3.41
#D252EC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.16
#D252EC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D252EC
6.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D252EC#FFFFFF#000000##000000
##D252EC1.003.416.166.16
#FFFFFF3.411.0021.0021.00
#0000006.1621.001.001.00
##0000006.1621.001.001.00

Color blindness preview

Protanopia (red-blind)
#2182F1
Deuteranopia (green-blind)
#6090E8
Tritanopia (blue-blind)
#D36D99
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #d252ec;
/* rgb */ color: rgb(210, 82, 236);
/* oklch */ color: oklch(66.7% 0.240 320.5);
Tailwind
colors: {
  custom: {
    50: '#e38bf3',
    500: '#d252ec',
    950: '#000000',
  },
}
SCSS
$custom: #d252ec;
$custom-light: #e38bf3;
$custom-dark: #000000;
JSON
{
  "hex": "#d252ec",
  "rgb": {
    "r": 210,
    "g": 82,
    "b": 236
  },
  "hsl": {
    "h": 289.87,
    "s": 80.208,
    "l": 62.353
  },
  "oklch": {
    "l": 0.66714,
    "c": 0.23965,
    "h": 320.5
  },
  "luminance": 0.25792
}

Semantic roles & 50–950 ramp

primary
#D252EC
secondary
#BAE9B1
accent
#DD092D
background
#FEF9FE
surface
#FDF1FD
border
#D5CBD5
text
#160D17
muted
#847E85

Preview Lab

Preview with #D252EC

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

Preview Lab → · Contrast checker → · Palette generator →

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