#D151E7#D151E7

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

Color values

HEX#D151E7
RGBrgb(209, 81, 231)
HSLhsl(291, 76%, 61%)
HSVhsv(291, 65%, 91%)
CMYKcmyk(9.5%, 64.9%, 0%, 9.4%)
CIE-LABlab(57.28, 69.92, -52.72)
CIE-LCHlch(57.28, 87.57, 322.98°)
OKLaboklab(66.19% 0.1848 -0.1471)
OKLCHoklch(66.19% 0.236 321.5)
XYZxyz(43.6591, 25.2119, 78.1525)
Luminance0.2521 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D151E7 #67E751
analogous
#8651E7 #D151E7 #E751B2
triadic
#D151E7 #E7D151 #51E7D1
tetradic
#D151E7 #E78651 #67E751 #51B2E7
square
#D151E7 #E78651 #67E751 #51B2E7
split-complementary
#D151E7 #B2E751 #51E786
monochromatic
#9217A7 #C11EDC #D151E7 #DF87EE #EDBDF6

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##D151E7#FFFFFF#000000##000000
##D151E71.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)
#2780EB
Deuteranopia (green-blind)
#628EE3
Tritanopia (blue-blind)
#D36A95
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #d151e7;
/* rgb */ color: rgb(209, 81, 231);
/* oklch */ color: oklch(66.2% 0.236 321.5);
Tailwind
colors: {
  custom: {
    50: '#e38bef',
    500: '#d151e7',
    950: '#000000',
  },
}
SCSS
$custom: #d151e7;
$custom-light: #e38bef;
$custom-dark: #000000;
JSON
{
  "hex": "#d151e7",
  "rgb": {
    "r": 209,
    "g": 81,
    "b": 231
  },
  "hsl": {
    "h": 291.2,
    "s": 75.758,
    "l": 61.176
  },
  "oklch": {
    "l": 0.66194,
    "c": 0.23616,
    "h": 321.5
  },
  "luminance": 0.2521
}

Semantic roles & 50–950 ramp

primary
#D151E7
secondary
#B6E6AE
accent
#D80E2B
background
#FEF8FE
surface
#FDF0FD
border
#D5CBD5
text
#160D16
muted
#847D84

Preview Lab

Preview with #D151E7

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

Preview Lab → · Contrast checker → · Palette generator →

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