#D152E4#D152E4

#D152E4 is a light, highly saturated purple. Relative luminance 0.252; OKLCH L 66.1% C 0.232 H 322.2°. Best body text is #000000 at 6.04:1 contrast (WCAG AA passes).

Color values

HEX#D152E4
RGBrgb(209, 82, 228)
HSLhsl(292, 73%, 61%)
HSVhsv(292, 64%, 89%)
CMYKcmyk(8.3%, 64%, 0%, 10.6%)
CIE-LABlab(57.26, 68.98, -51.07)
CIE-LCHlch(57.26, 85.82, 323.49°)
OKLaboklab(66.13% 0.1837 -0.1422)
OKLCHoklch(66.13% 0.232 322.2)
XYZxyz(43.3139, 25.1936, 75.9651)
Luminance0.2519 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D152E4 #65E452
analogous
#8852E4 #D152E4 #E452AE
triadic
#D152E4 #E4D152 #52E4D1
tetradic
#D152E4 #E48852 #65E452 #52AEE4
square
#D152E4 #E48852 #65E452 #52AEE4
split-complementary
#D152E4 #AEE452 #52E488
monochromatic
#9019A2 #C022D7 #D152E4 #DF87EC #EDBCF5

Accessibility & contrast

On white

3.48
#D152E4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.04
#D152E4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D152E4
6.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D152E4#FFFFFF#000000##000000
##D152E41.003.486.046.04
#FFFFFF3.481.0021.0021.00
#0000006.0421.001.001.00
##0000006.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#2E80E8
Deuteranopia (green-blind)
#658EE0
Tritanopia (blue-blind)
#D46A94
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #d152e4;
/* rgb */ color: rgb(209, 82, 228);
/* oklch */ color: oklch(66.1% 0.232 322.2);
Tailwind
colors: {
  custom: {
    50: '#e38bed',
    500: '#d152e4',
    950: '#000000',
  },
}
SCSS
$custom: #d152e4;
$custom-light: #e38bed;
$custom-dark: #000000;
JSON
{
  "hex": "#d152e4",
  "rgb": {
    "r": 209,
    "g": 82,
    "b": 228
  },
  "hsl": {
    "h": 292.192,
    "s": 73,
    "l": 60.784
  },
  "oklch": {
    "l": 0.66128,
    "c": 0.23232,
    "h": 322.2
  },
  "luminance": 0.25191
}

Semantic roles & 50–950 ramp

primary
#D152E4
secondary
#B4E5AD
accent
#D5102A
background
#FEF8FE
surface
#FDF0FD
border
#D5CBD5
text
#160D16
muted
#847D84

Preview Lab

Preview with #D152E4

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

Preview Lab → · Contrast checker → · Palette generator →

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