#8F2897#8F2897
#8F2897 is a mid, vivid purple. Relative luminance 0.096; OKLCH L 48.2% C 0.188 H 324.8°. Best body text is #FFFFFF at 7.20:1 contrast (WCAG AA passes).
Color values
| HEX | #8F2897 |
|---|---|
| RGB | rgb(143, 40, 151) |
| HSL | hsl(296, 58%, 37%) |
| HSV | hsv(296, 74%, 59%) |
| CMYK | cmyk(5.3%, 73.5%, 0%, 40.8%) |
| CIE-LAB | lab(37.10, 56.49, -38.87) |
| CIE-LCH | lch(37.10, 68.57, 325.47°) |
| OKLab | oklab(48.24% 0.1536 -0.1082) |
| OKLCH | oklch(48.24% 0.188 324.8) |
| XYZ | xyz(17.6720, 9.5927, 30.1929) |
| Luminance | 0.0959 (WCAG relative) |
| Temperature | neutral |
| Family | purple |
Closest named colors
Warm Purple
#952E8F
ΔE00 2.84
Barney Purple
#A00498
ΔE00 3.41
Darkmagenta
#8B008B
ΔE00 4.16
Purple (survey)
#7E1E9C
ΔE00 4.55
Purple
#800080
ΔE00 6.09
Purply
#983FB2
ΔE00 6.29
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8F2897 #309728
analogous
#582897 #8F2897 #972867
triadic
#8F2897 #978F28 #28978F
tetradic
#8F2897 #975828 #309728 #286797
square
#8F2897 #975828 #309728 #286797
split-complementary
#8F2897 #679728 #289758
monochromatic
#330E36 #611B67 #8F2897 #BD35C7 #CE64D6
Accessibility & contrast
On white
7.20
#8F2897 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.92
#8F2897 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #8F2897
7.20:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8F2897 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8F2897 | 1.00 | 7.20 | 2.92 | 7.20 |
| #FFFFFF | 7.20 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.92 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.20 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#034F9A
Deuteranopia (green-blind)
#3E5C94
Tritanopia (blue-blind)
#923B5D
Achromatopsia (no color)
#575757
Design tokens & code
CSS
--color: #8f2897; /* rgb */ color: rgb(143, 40, 151); /* oklch */ color: oklch(48.2% 0.188 324.8);
Tailwind
colors: {
custom: {
50: '#b36db6',
500: '#8f2897',
950: '#000000',
},
}SCSS
$custom: #8f2897; $custom-light: #b36db6; $custom-dark: #000000;
JSON
{
"hex": "#8f2897",
"rgb": {
"r": 143,
"g": 40,
"b": 151
},
"hsl": {
"h": 295.676,
"s": 58.115,
"l": 37.451
},
"oklch": {
"l": 0.48239,
"c": 0.18785,
"h": 324.8
},
"luminance": 0.09592
}Semantic roles & 50–950 ramp
primary
#8F2897
secondary
#66BC5F
accent
#E14652
background
#FBF6FB
surface
#F6ECF6
border
#D0C7D0
text
#110811
muted
#807B80