#8F2172#8F2172
#8F2172 is a mid, vivid pink. Relative luminance 0.081; OKLCH L 45.6% C 0.168 H 340.9°. Best body text is #FFFFFF at 7.99:1 contrast (WCAG AA passes).
Color values
| HEX | #8F2172 |
|---|---|
| RGB | rgb(143, 33, 114) |
| HSL | hsl(316, 63%, 35%) |
| HSV | hsv(316, 77%, 56%) |
| CMYK | cmyk(0%, 76.9%, 20.3%, 43.9%) |
| CIE-LAB | lab(34.28, 52.93, -20.37) |
| CIE-LCH | lch(34.28, 56.71, 338.95°) |
| OKLab | oklab(45.57% 0.1584 -0.0549) |
| OKLCH | oklch(45.57% 0.168 340.9) |
| XYZ | xyz(14.9093, 8.1438, 16.7030) |
| Luminance | 0.0814 (WCAG relative) |
| Temperature | warm |
| Family | pink |
Closest named colors
Red Violet
#9E0168
ΔE00 4.37
Warm Purple
#952E8F
ΔE00 5.85
Darkish Purple
#751973
ΔE00 6.51
Bruise
#7E4071
ΔE00 6.69
Darkmagenta
#8B008B
ΔE00 6.91
Purple
#800080
ΔE00 7.09
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8F2172 #218F3E
analogous
#75218F #8F2172 #8F213B
triadic
#8F2172 #728F21 #21728F
tetradic
#8F2172 #8F7521 #218F3E #213B8F
square
#8F2172 #8F7521 #218F3E #213B8F
split-complementary
#8F2172 #3B8F21 #218F75
monochromatic
#2C0A23 #5D164A #8F2172 #C12C9A #D753B4
Accessibility & contrast
On white
7.99
#8F2172 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.63
#8F2172 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #8F2172
7.99:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8F2172 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8F2172 | 1.00 | 7.99 | 2.63 | 7.99 |
| #FFFFFF | 7.99 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.63 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.99 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#2A4574
Deuteranopia (green-blind)
#4E576F
Tritanopia (blue-blind)
#982447
Achromatopsia (no color)
#515151
Design tokens & code
CSS
--color: #8f2172; /* rgb */ color: rgb(143, 33, 114); /* oklch */ color: oklch(45.6% 0.168 340.9);
Tailwind
colors: {
custom: {
50: '#b3689a',
500: '#8f2172',
950: '#000000',
},
}SCSS
$custom: #8f2172; $custom-light: #b3689a; $custom-dark: #000000;
JSON
{
"hex": "#8f2172",
"rgb": {
"r": 143,
"g": 33,
"b": 114
},
"hsl": {
"h": 315.818,
"s": 62.5,
"l": 34.51
},
"oklch": {
"l": 0.45569,
"c": 0.16766,
"h": 340.9
},
"luminance": 0.08142
}Semantic roles & 50–950 ramp
primary
#8F2172
secondary
#51BB6D
accent
#E66D42
background
#FBF6F9
surface
#F6EBF2
border
#D0C6CC
text
#11070E
muted
#807A7E