#8F52BA#8F52BA
#8F52BA is a mid, vivid violet. Relative luminance 0.154; OKLCH L 55.5% C 0.164 H 309.1°. Best body text is #FFFFFF at 5.14:1 contrast (WCAG AA passes).
Color values
| HEX | #8F52BA |
|---|---|
| RGB | rgb(143, 82, 186) |
| HSL | hsl(275, 43%, 53%) |
| HSV | hsv(275, 56%, 73%) |
| CMYK | cmyk(23.1%, 55.9%, 0%, 27.1%) |
| CIE-LAB | lab(46.20, 44.39, -45.18) |
| CIE-LCH | lch(46.20, 63.33, 314.49°) |
| OKLab | oklab(55.5% 0.1032 -0.1269) |
| OKLCH | oklch(55.5% 0.164 309.1) |
| XYZ | xyz(23.2062, 15.4198, 48.1987) |
| Luminance | 0.1542 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Deep Lavender
#8D5EB7
ΔE00 3.44
Amethyst
#9B5FC0
ΔE00 4.58
Purply
#983FB2
ΔE00 4.73
Royal Purple
#7851A9
ΔE00 5.05
Darkorchid
#9932CC
ΔE00 6.46
Medium Purple
#9E43A2
ΔE00 6.81
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8F52BA #7DBA52
analogous
#5B52BA #8F52BA #BA52B1
triadic
#8F52BA #BA8F52 #52BA8F
tetradic
#8F52BA #BA5B52 #7DBA52 #52B1BA
square
#8F52BA #BA5B52 #7DBA52 #52B1BA
split-complementary
#8F52BA #B1BA52 #52BA5B
monochromatic
#4E2A68 #6F3B94 #8F52BA #AB7ECB #C8AADD
Accessibility & contrast
On white
5.14
#8F52BA on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.08
#8F52BA on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8F52BA
5.14:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8F52BA | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8F52BA | 1.00 | 5.14 | 4.08 | 5.14 |
| #FFFFFF | 5.14 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.08 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.14 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#306BBD
Deuteranopia (green-blind)
#466EB7
Tritanopia (blue-blind)
#89657E
Achromatopsia (no color)
#6D6D6D
Design tokens & code
CSS
--color: #8f52ba; /* rgb */ color: rgb(143, 82, 186); /* oklch */ color: oklch(55.5% 0.164 309.1);
Tailwind
colors: {
custom: {
50: '#b285cf',
500: '#8f52ba',
950: '#000000',
},
}SCSS
$custom: #8f52ba; $custom-light: #b285cf; $custom-dark: #000000;
JSON
{
"hex": "#8f52ba",
"rgb": {
"r": 143,
"g": 82,
"b": 186
},
"hsl": {
"h": 275.192,
"s": 42.975,
"l": 52.549
},
"oklch": {
"l": 0.55499,
"c": 0.16357,
"h": 309.1
},
"luminance": 0.15419
}Semantic roles & 50–950 ramp
primary
#8F52BA
secondary
#B0CA9D
accent
#D35589
background
#FBF8FC
surface
#F6EFF9
border
#D0CAD2
text
#110B14
muted
#807C82