#8F2797#8F2797
#8F2797 is a mid, vivid purple. Relative luminance 0.095; OKLCH L 48.2% C 0.189 H 324.9°. Best body text is #FFFFFF at 7.23:1 contrast (WCAG AA passes).
Color values
| HEX | #8F2797 |
|---|---|
| RGB | rgb(143, 39, 151) |
| HSL | hsl(296, 59%, 37%) |
| HSV | hsv(296, 74%, 59%) |
| CMYK | cmyk(5.3%, 74.2%, 0%, 40.8%) |
| CIE-LAB | lab(36.98, 56.84, -39.06) |
| CIE-LCH | lch(36.98, 68.97, 325.50°) |
| OKLab | oklab(48.15% 0.1545 -0.1088) |
| OKLCH | oklch(48.15% 0.189 324.9) |
| XYZ | xyz(17.6387, 9.5262, 30.1818) |
| Luminance | 0.0953 (WCAG relative) |
| Temperature | neutral |
| Family | purple |
Closest named colors
Warm Purple
#952E8F
ΔE00 2.92
Barney Purple
#A00498
ΔE00 3.35
Darkmagenta
#8B008B
ΔE00 4.03
Purple (survey)
#7E1E9C
ΔE00 4.47
Purple
#800080
ΔE00 5.98
Purply
#983FB2
ΔE00 6.38
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8F2797 #2F9727
analogous
#572797 #8F2797 #972767
triadic
#8F2797 #978F27 #27978F
tetradic
#8F2797 #975727 #2F9727 #276797
square
#8F2797 #975727 #2F9727 #276797
split-complementary
#8F2797 #679727 #279757
monochromatic
#330E36 #611A66 #8F2797 #BD34C8 #CE62D6
Accessibility & contrast
On white
7.23
#8F2797 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.91
#8F2797 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #8F2797
7.23:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8F2797 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8F2797 | 1.00 | 7.23 | 2.91 | 7.23 |
| #FFFFFF | 7.23 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.91 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.23 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004F9A
Deuteranopia (green-blind)
#3E5B94
Tritanopia (blue-blind)
#923B5D
Achromatopsia (no color)
#575757
Design tokens & code
CSS
--color: #8f2797; /* rgb */ color: rgb(143, 39, 151); /* oklch */ color: oklch(48.2% 0.189 324.9);
Tailwind
colors: {
custom: {
50: '#b36cb6',
500: '#8f2797',
950: '#000000',
},
}SCSS
$custom: #8f2797; $custom-light: #b36cb6; $custom-dark: #000000;
JSON
{
"hex": "#8f2797",
"rgb": {
"r": 143,
"g": 39,
"b": 151
},
"hsl": {
"h": 295.714,
"s": 58.947,
"l": 37.255
},
"oklch": {
"l": 0.48151,
"c": 0.18897,
"h": 324.9
},
"luminance": 0.09525
}Semantic roles & 50–950 ramp
primary
#8F2797
secondary
#65BC5E
accent
#E24651
background
#FBF6FB
surface
#F6ECF6
border
#D0C7D0
text
#110811
muted
#807B80