#8F217B#8F217B
#8F217B is a mid, vivid pink. Relative luminance 0.084; OKLCH L 46.0% C 0.174 H 336.6°. Best body text is #FFFFFF at 7.86:1 contrast (WCAG AA passes).
Color values
| HEX | #8F217B |
|---|---|
| RGB | rgb(143, 33, 123) |
| HSL | hsl(311, 63%, 35%) |
| HSV | hsv(311, 77%, 56%) |
| CMYK | cmyk(0%, 76.9%, 14%, 43.9%) |
| CIE-LAB | lab(34.72, 54.24, -25.35) |
| CIE-LCH | lch(34.72, 59.88, 334.95°) |
| OKLab | oklab(46.03% 0.1596 -0.0691) |
| OKLCH | oklch(46.03% 0.174 336.6) |
| XYZ | xyz(15.4470, 8.3588, 19.5349) |
| Luminance | 0.0836 (WCAG relative) |
| Temperature | neutral |
| Family | pink |
Closest named colors
Warm Purple
#952E8F
ΔE00 4.13
Darkmagenta
#8B008B
ΔE00 5.12
Barney Purple
#A00498
ΔE00 5.52
Darkish Purple
#751973
ΔE00 5.66
Purple
#800080
ΔE00 5.70
Red Violet
#9E0168
ΔE00 5.98
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8F217B #218F35
analogous
#6C218F #8F217B #8F2144
triadic
#8F217B #7B8F21 #217B8F
tetradic
#8F217B #8F6C21 #218F35 #21448F
square
#8F217B #8F6C21 #218F35 #21448F
split-complementary
#8F217B #448F21 #218F6C
monochromatic
#2C0A25 #5D1650 #8F217B #C12CA6 #D753BF
Accessibility & contrast
On white
7.86
#8F217B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.67
#8F217B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #8F217B
7.86:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8F217B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8F217B | 1.00 | 7.86 | 2.67 | 7.86 |
| #FFFFFF | 7.86 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.67 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.86 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#24477D
Deuteranopia (green-blind)
#4A5878
Tritanopia (blue-blind)
#97294C
Achromatopsia (no color)
#525252
Design tokens & code
CSS
--color: #8f217b; /* rgb */ color: rgb(143, 33, 123); /* oklch */ color: oklch(46.0% 0.174 336.6);
Tailwind
colors: {
custom: {
50: '#b369a1',
500: '#8f217b',
950: '#000000',
},
}SCSS
$custom: #8f217b; $custom-light: #b369a1; $custom-dark: #000000;
JSON
{
"hex": "#8f217b",
"rgb": {
"r": 143,
"g": 33,
"b": 123
},
"hsl": {
"h": 310.909,
"s": 62.5,
"l": 34.51
},
"oklch": {
"l": 0.46029,
"c": 0.17386,
"h": 336.6
},
"luminance": 0.08357
}Semantic roles & 50–950 ramp
primary
#8F217B
secondary
#51BB64
accent
#E66042
background
#FBF6F9
surface
#F6EBF2
border
#D0C6CC
text
#11070F
muted
#807A7E