#D151F3#D151F3

#D151F3 is a light, highly saturated purple. Relative luminance 0.259; OKLCH L 66.9% C 0.247 H 318.5°. Best body text is #000000 at 6.18:1 contrast (WCAG AA passes).

Color values

HEX#D151F3
RGBrgb(209, 81, 243)
HSLhsl(287, 87%, 64%)
HSVhsv(287, 67%, 95%)
CMYKcmyk(14%, 66.7%, 0%, 4.7%)
CIE-LABlab(57.95, 72.11, -58.35)
CIE-LCHlch(57.95, 92.77, 321.02°)
OKLaboklab(66.89% 0.1845 -0.1635)
OKLCHoklch(66.89% 0.247 318.5)
XYZxyz(45.4124, 25.9132, 87.3863)
Luminance0.2591 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D151F3 #73F351
analogous
#8051F3 #D151F3 #F351C4
triadic
#D151F3 #F3D151 #51F3D1
tetradic
#D151F3 #F38051 #73F351 #51C4F3
square
#D151F3 #F38051 #73F351 #51C4F3
split-complementary
#D151F3 #C4F351 #51F380
monochromatic
#980DBD #C218EF #D151F3 #E08AF7 #EFC4FB

Accessibility & contrast

On white

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

On black

6.18
#D151F3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D151F3
6.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D151F3#FFFFFF#000000##000000
##D151F31.003.406.186.18
#FFFFFF3.401.0021.0021.00
#0000006.1821.001.001.00
##0000006.1821.001.001.00

Color blindness preview

Protanopia (red-blind)
#0083F8
Deuteranopia (green-blind)
#598FEF
Tritanopia (blue-blind)
#D06F9C
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #d151f3;
/* rgb */ color: rgb(209, 81, 243);
/* oklch */ color: oklch(66.9% 0.247 318.5);
Tailwind
colors: {
  custom: {
    50: '#e38bf8',
    500: '#d151f3',
    950: '#000000',
  },
}
SCSS
$custom: #d151f3;
$custom-light: #e38bf8;
$custom-dark: #000000;
JSON
{
  "hex": "#d151f3",
  "rgb": {
    "r": 209,
    "g": 81,
    "b": 243
  },
  "hsl": {
    "h": 287.407,
    "s": 87.097,
    "l": 63.529
  },
  "oklch": {
    "l": 0.66894,
    "c": 0.24654,
    "h": 318.5
  },
  "luminance": 0.25911
}

Semantic roles & 50–950 ramp

primary
#D151F3
secondary
#BFEDB3
accent
#E40231
background
#FEF9FF
surface
#FDF1FF
border
#D5CBD7
text
#160D17
muted
#847E85

Preview Lab

Preview with #D151F3

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

Preview Lab → · Contrast checker → · Palette generator →

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