#8A34B5#8A34B5
#8A34B5 is a mid, vivid purple. Relative luminance 0.112; OKLCH L 50.7% C 0.199 H 311.9°. Best body text is #FFFFFF at 6.48:1 contrast (WCAG AA passes).
Color values
| HEX | #8A34B5 |
|---|---|
| RGB | rgb(138, 52, 181) |
| HSL | hsl(280, 55%, 46%) |
| HSV | hsv(280, 71%, 71%) |
| CMYK | cmyk(23.8%, 71.3%, 0%, 29%) |
| CIE-LAB | lab(39.91, 56.65, -52.37) |
| CIE-LCH | lch(39.91, 77.15, 317.25°) |
| OKLab | oklab(50.7% 0.1328 -0.148) |
| OKLCH | oklch(50.7% 0.199 311.9) |
| XYZ | xyz(20.0482, 11.1960, 44.8120) |
| Luminance | 0.1119 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Darkorchid
#9932CC
ΔE00 3.96
Purply
#983FB2
ΔE00 4.09
Darkviolet
#9400D3
ΔE00 5.26
Purple (survey)
#7E1E9C
ΔE00 5.74
Barney
#AC1DB8
ΔE00 6.04
Blueviolet
#8A2BE2
ΔE00 6.38
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A34B5 #5FB534
analogous
#4934B5 #8A34B5 #B5349F
triadic
#8A34B5 #B58A34 #34B58A
tetradic
#8A34B5 #B54934 #5FB534 #349FB5
square
#8A34B5 #B54934 #5FB534 #349FB5
split-complementary
#8A34B5 #9FB534 #34B549
monochromatic
#421956 #662685 #8A34B5 #A757CF #C087DC
Accessibility & contrast
On white
6.48
#8A34B5 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.24
#8A34B5 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8A34B5
6.48:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A34B5 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8A34B5 | 1.00 | 6.48 | 3.24 | 6.48 |
| #FFFFFF | 6.48 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.24 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.48 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005AB9
Deuteranopia (green-blind)
#2460B2
Tritanopia (blue-blind)
#855071
Achromatopsia (no color)
#5E5E5E
Design tokens & code
CSS
--color: #8a34b5; /* rgb */ color: rgb(138, 52, 181); /* oklch */ color: oklch(50.7% 0.199 311.9);
Tailwind
colors: {
custom: {
50: '#b073cc',
500: '#8a34b5',
950: '#000000',
},
}SCSS
$custom: #8a34b5; $custom-light: #b073cc; $custom-dark: #000000;
JSON
{
"hex": "#8a34b5",
"rgb": {
"r": 138,
"g": 52,
"b": 181
},
"hsl": {
"h": 280,
"s": 55.365,
"l": 45.686
},
"oklch": {
"l": 0.50703,
"c": 0.19881,
"h": 311.9
},
"luminance": 0.11195
}Semantic roles & 50–950 ramp
primary
#8A34B5
secondary
#96C67F
accent
#DF497B
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110913
muted
#807B82