#8A2ABB#8A2ABB
#8A2ABB is a mid, highly saturated violet. Relative luminance 0.106; OKLCH L 50.2% C 0.215 H 310.9°. Best body text is #FFFFFF at 6.71:1 contrast (WCAG AA passes).
Color values
| HEX | #8A2ABB |
|---|---|
| RGB | rgb(138, 42, 187) |
| HSL | hsl(280, 63%, 45%) |
| HSV | hsv(280, 78%, 73%) |
| CMYK | cmyk(26.2%, 77.5%, 0%, 26.7%) |
| CIE-LAB | lab(38.98, 61.78, -57.41) |
| CIE-LCH | lch(38.98, 84.34, 317.10°) |
| OKLab | oklab(50.18% 0.1411 -0.1627) |
| OKLCH | oklch(50.18% 0.215 310.9) |
| XYZ | xyz(20.2771, 10.6476, 47.9911) |
| Luminance | 0.1065 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Darkviolet
#9400D3
ΔE00 3.75
Darkorchid
#9932CC
ΔE00 4.03
Purple (survey)
#7E1E9C
ΔE00 5.46
Purply
#983FB2
ΔE00 5.54
Blueviolet
#8A2BE2
ΔE00 5.54
Violet (survey)
#9A0EEA
ΔE00 6.31
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A2ABB #5BBB2A
analogous
#412ABB #8A2ABB #BB2AA4
triadic
#8A2ABB #BB8A2A #2ABB8A
tetradic
#8A2ABB #BB412A #5BBB2A #2AA4BB
square
#8A2ABB #BB412A #5BBB2A #2AA4BB
split-complementary
#8A2ABB #A4BB2A #2ABB41
monochromatic
#401457 #651F89 #8A2ABB #A84CD7 #C07DE2
Accessibility & contrast
On white
6.71
#8A2ABB on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.13
#8A2ABB on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8A2ABB
6.71:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A2ABB | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8A2ABB | 1.00 | 6.71 | 3.13 | 6.71 |
| #FFFFFF | 6.71 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.13 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.71 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0058BF
Deuteranopia (green-blind)
#005DB8
Tritanopia (blue-blind)
#834D72
Achromatopsia (no color)
#5C5C5C
Design tokens & code
CSS
--color: #8a2abb; /* rgb */ color: rgb(138, 42, 187); /* oklch */ color: oklch(50.2% 0.215 310.9);
Tailwind
colors: {
custom: {
50: '#b16fd0',
500: '#8a2abb',
950: '#000000',
},
}SCSS
$custom: #8a2abb; $custom-light: #b16fd0; $custom-dark: #000000;
JSON
{
"hex": "#8a2abb",
"rgb": {
"r": 138,
"g": 42,
"b": 187
},
"hsl": {
"h": 279.724,
"s": 63.319,
"l": 44.902
},
"oklch": {
"l": 0.50181,
"c": 0.2154,
"h": 310.9
},
"luminance": 0.10647
}Semantic roles & 50–950 ramp
primary
#8A2ABB
secondary
#93CA76
accent
#E64179
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110814
muted
#807B82