#8A2AC6#8A2AC6
#8A2AC6 is a mid, highly saturated violet. Relative luminance 0.111; OKLCH L 51.0% C 0.225 H 308.0°. Best body text is #FFFFFF at 6.51:1 contrast (WCAG AA passes).
Color values
| HEX | #8A2AC6 |
|---|---|
| RGB | rgb(138, 42, 198) |
| HSL | hsl(277, 65%, 47%) |
| HSV | hsv(277, 79%, 78%) |
| CMYK | cmyk(30.3%, 78.8%, 0%, 22.4%) |
| CIE-LAB | lab(39.81, 64.09, -62.51) |
| CIE-LCH | lch(39.81, 89.53, 315.72°) |
| OKLab | oklab(51.02% 0.1387 -0.1777) |
| OKLCH | oklch(51.02% 0.225 308) |
| XYZ | xyz(21.5001, 11.1367, 54.4321) |
| Luminance | 0.1114 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Darkviolet
#9400D3
ΔE00 2.85
Darkorchid
#9932CC
ΔE00 3.41
Blueviolet
#8A2BE2
ΔE00 3.91
Violet (survey)
#9A0EEA
ΔE00 4.90
Vibrant Purple
#AD03DE
ΔE00 5.98
Purply
#983FB2
ΔE00 6.22
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A2AC6 #66C62A
analogous
#3C2AC6 #8A2AC6 #C62AB4
triadic
#8A2AC6 #C68A2A #2AC68A
tetradic
#8A2AC6 #C63C2A #66C62A #2AB4C6
square
#8A2AC6 #C63C2A #66C62A #2AB4C6
split-complementary
#8A2AC6 #B4C62A #2AC63C
monochromatic
#441561 #671F94 #8A2AC6 #A653DA #C085E5
Accessibility & contrast
On white
6.51
#8A2AC6 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.23
#8A2AC6 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8A2AC6
6.51:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A2AC6 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8A2AC6 | 1.00 | 6.51 | 3.23 | 6.51 |
| #FFFFFF | 6.51 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.23 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.51 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005ACA
Deuteranopia (green-blind)
#005FC3
Tritanopia (blue-blind)
#805278
Achromatopsia (no color)
#5E5E5E
Design tokens & code
CSS
--color: #8a2ac6; /* rgb */ color: rgb(138, 42, 198); /* oklch */ color: oklch(51.0% 0.225 308.0);
Tailwind
colors: {
custom: {
50: '#b26fd8',
500: '#8a2ac6',
950: '#000000',
},
}SCSS
$custom: #8a2ac6; $custom-light: #b26fd8; $custom-dark: #000000;
JSON
{
"hex": "#8a2ac6",
"rgb": {
"r": 138,
"g": 42,
"b": 198
},
"hsl": {
"h": 276.923,
"s": 65,
"l": 47.059
},
"oklch": {
"l": 0.51022,
"c": 0.22543,
"h": 308
},
"luminance": 0.11136
}Semantic roles & 50–950 ramp
primary
#8A2AC6
secondary
#9DCE7D
accent
#E84080
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#120815
muted
#817B83