#8A34B6#8A34B6
#8A34B6 is a mid, vivid violet. Relative luminance 0.112; OKLCH L 50.8% C 0.200 H 311.6°. Best body text is #FFFFFF at 6.47:1 contrast (WCAG AA passes).
Color values
| HEX | #8A34B6 |
|---|---|
| RGB | rgb(138, 52, 182) |
| HSL | hsl(280, 56%, 46%) |
| HSV | hsv(280, 71%, 71%) |
| CMYK | cmyk(24.2%, 71.4%, 0%, 28.6%) |
| CIE-LAB | lab(39.98, 56.86, -52.85) |
| CIE-LCH | lch(39.98, 77.63, 317.09°) |
| OKLab | oklab(50.77% 0.1326 -0.1494) |
| OKLCH | oklch(50.77% 0.2 311.6) |
| XYZ | xyz(20.1511, 11.2372, 45.3544) |
| Luminance | 0.1124 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Darkorchid
#9932CC
ΔE00 3.84
Purply
#983FB2
ΔE00 4.15
Darkviolet
#9400D3
ΔE00 5.16
Purple (survey)
#7E1E9C
ΔE00 5.84
Barney
#AC1DB8
ΔE00 6.07
Blueviolet
#8A2BE2
ΔE00 6.22
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A34B6 #60B634
analogous
#4934B6 #8A34B6 #B634A1
triadic
#8A34B6 #B68A34 #34B68A
tetradic
#8A34B6 #B64934 #60B634 #34A1B6
square
#8A34B6 #B64934 #60B634 #34A1B6
split-complementary
#8A34B6 #A1B634 #34B649
monochromatic
#421957 #662686 #8A34B6 #A758CF #C088DD
Accessibility & contrast
On white
6.47
#8A34B6 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.25
#8A34B6 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8A34B6
6.47:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A34B6 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8A34B6 | 1.00 | 6.47 | 3.25 | 6.47 |
| #FFFFFF | 6.47 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.25 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.47 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005ABA
Deuteranopia (green-blind)
#2260B3
Tritanopia (blue-blind)
#855072
Achromatopsia (no color)
#5E5E5E
Design tokens & code
CSS
--color: #8a34b6; /* rgb */ color: rgb(138, 52, 182); /* oklch */ color: oklch(50.8% 0.200 311.6);
Tailwind
colors: {
custom: {
50: '#b073cd',
500: '#8a34b6',
950: '#000000',
},
}SCSS
$custom: #8a34b6; $custom-light: #b073cd; $custom-dark: #000000;
JSON
{
"hex": "#8a34b6",
"rgb": {
"r": 138,
"g": 52,
"b": 182
},
"hsl": {
"h": 279.692,
"s": 55.556,
"l": 45.882
},
"oklch": {
"l": 0.50773,
"c": 0.19978,
"h": 311.6
},
"luminance": 0.11237
}Semantic roles & 50–950 ramp
primary
#8A34B6
secondary
#97C77F
accent
#DF497C
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110913
muted
#807B82