#D151F0#D151F0

#D151F0 is a light, highly saturated purple. Relative luminance 0.257; OKLCH L 66.7% C 0.244 H 319.2°. Best body text is #000000 at 6.15:1 contrast (WCAG AA passes).

Color values

HEX#D151F0
RGBrgb(209, 81, 240)
HSLhsl(288, 84%, 63%)
HSVhsv(288, 66%, 94%)
CMYKcmyk(12.9%, 66.3%, 0%, 5.9%)
CIE-LABlab(57.78, 71.56, -56.96)
CIE-LCHlch(57.78, 91.46, 321.48°)
OKLaboklab(66.72% 0.1846 -0.1594)
OKLCHoklch(66.72% 0.244 319.2)
XYZxyz(44.9631, 25.7335, 85.0198)
Luminance0.2573 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D151F0 #70F051
analogous
#8151F0 #D151F0 #F051BF
triadic
#D151F0 #F0D151 #51F0D1
tetradic
#D151F0 #F08151 #70F051 #51BFF0
square
#D151F0 #F08151 #70F051 #51BFF0
split-complementary
#D151F0 #BFF051 #51F081
monochromatic
#9610B7 #C219EB #D151F0 #E089F5 #EFC2FA

Accessibility & contrast

On white

3.42
#D151F0 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.15
#D151F0 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D151F0
6.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D151F0#FFFFFF#000000##000000
##D151F01.003.426.156.15
#FFFFFF3.421.0021.0021.00
#0000006.1521.001.001.00
##0000006.1521.001.001.00

Color blindness preview

Protanopia (red-blind)
#1082F5
Deuteranopia (green-blind)
#5C8FEC
Tritanopia (blue-blind)
#D16E9A
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #d151f0;
/* rgb */ color: rgb(209, 81, 240);
/* oklch */ color: oklch(66.7% 0.244 319.2);
Tailwind
colors: {
  custom: {
    50: '#e38bf6',
    500: '#d151f0',
    950: '#000000',
  },
}
SCSS
$custom: #d151f0;
$custom-light: #e38bf6;
$custom-dark: #000000;
JSON
{
  "hex": "#d151f0",
  "rgb": {
    "r": 209,
    "g": 81,
    "b": 240
  },
  "hsl": {
    "h": 288.302,
    "s": 84.127,
    "l": 62.941
  },
  "oklch": {
    "l": 0.66716,
    "c": 0.24393,
    "h": 319.2
  },
  "luminance": 0.25731
}

Semantic roles & 50–950 ramp

primary
#D151F0
secondary
#BDEBB2
accent
#E10530
background
#FEF9FF
surface
#FDF1FE
border
#D5CBD6
text
#160D17
muted
#847E85

Preview Lab

Preview with #D151F0

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

Preview Lab → · Contrast checker → · Palette generator →

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