#D151F2#D151F2

#D151F2 is a light, highly saturated purple. Relative luminance 0.259; OKLCH L 66.8% C 0.246 H 318.7°. Best body text is #000000 at 6.17:1 contrast (WCAG AA passes).

Color values

HEX#D151F2
RGBrgb(209, 81, 242)
HSLhsl(288, 86%, 63%)
HSVhsv(288, 67%, 95%)
CMYKcmyk(13.6%, 66.5%, 0%, 5.1%)
CIE-LABlab(57.90, 71.93, -57.89)
CIE-LCHlch(57.90, 92.33, 321.17°)
OKLaboklab(66.83% 0.1846 -0.1622)
OKLCHoklch(66.83% 0.246 318.7)
XYZxyz(45.2618, 25.8530, 86.5932)
Luminance0.2585 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D151F2 #72F251
analogous
#8051F2 #D151F2 #F251C2
triadic
#D151F2 #F2D151 #51F2D1
tetradic
#D151F2 #F28051 #72F251 #51C2F2
square
#D151F2 #F28051 #72F251 #51C2F2
split-complementary
#D151F2 #C2F251 #51F280
monochromatic
#970EBB #C218EE #D151F2 #E08AF6 #EFC3FB

Accessibility & contrast

On white

3.40
#D151F2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.17
#D151F2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D151F2
6.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D151F2#FFFFFF#000000##000000
##D151F21.003.406.176.17
#FFFFFF3.401.0021.0021.00
#0000006.1721.001.001.00
##0000006.1721.001.001.00

Color blindness preview

Protanopia (red-blind)
#0683F7
Deuteranopia (green-blind)
#5A8FEE
Tritanopia (blue-blind)
#D16F9B
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #d151f2;
/* rgb */ color: rgb(209, 81, 242);
/* oklch */ color: oklch(66.8% 0.246 318.7);
Tailwind
colors: {
  custom: {
    50: '#e38bf7',
    500: '#d151f2',
    950: '#000000',
  },
}
SCSS
$custom: #d151f2;
$custom-light: #e38bf7;
$custom-dark: #000000;
JSON
{
  "hex": "#d151f2",
  "rgb": {
    "r": 209,
    "g": 81,
    "b": 242
  },
  "hsl": {
    "h": 287.702,
    "s": 86.096,
    "l": 63.333
  },
  "oklch": {
    "l": 0.66835,
    "c": 0.24567,
    "h": 318.7
  },
  "luminance": 0.25851
}

Semantic roles & 50–950 ramp

primary
#D151F2
secondary
#BEECB3
accent
#E30331
background
#FEF9FF
surface
#FDF1FF
border
#D5CBD7
text
#160D17
muted
#847E85

Preview Lab

Preview with #D151F2

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

Preview Lab → · Contrast checker → · Palette generator →

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