#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 |
|---|---|
| RGB | rgb(209, 81, 242) |
| HSL | hsl(288, 86%, 63%) |
| HSV | hsv(288, 67%, 95%) |
| CMYK | cmyk(13.6%, 66.5%, 0%, 5.1%) |
| CIE-LAB | lab(57.90, 71.93, -57.89) |
| CIE-LCH | lch(57.90, 92.33, 321.17°) |
| OKLab | oklab(66.83% 0.1846 -0.1622) |
| OKLCH | oklch(66.83% 0.246 318.7) |
| XYZ | xyz(45.2618, 25.8530, 86.5932) |
| Luminance | 0.2585 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Heliotrope
#D94FF5
ΔE00 1.27
Bright Lilac
#C95EFB
ΔE00 2.77
Bright Lavender
#C760FF
ΔE00 3.52
Pinkish Purple
#D648D7
ΔE00 4.55
Mediumorchid
#BA55D3
ΔE00 5.28
Pink Purple
#EF1DE7
ΔE00 5.77
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 |
|---|---|---|---|---|
| ##D151F2 | 1.00 | 3.40 | 6.17 | 6.17 |
| #FFFFFF | 3.40 | 1.00 | 21.00 | 21.00 |
| #000000 | 6.17 | 21.00 | 1.00 | 1.00 |
| ##000000 | 6.17 | 21.00 | 1.00 | 1.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