#8A39BB#8A39BB
#8A39BB is a mid, vivid violet. Relative luminance 0.119; OKLCH L 51.7% C 0.199 H 309.7°. Best body text is #FFFFFF at 6.21:1 contrast (WCAG AA passes).
Color values
| HEX | #8A39BB |
|---|---|
| RGB | rgb(138, 57, 187) |
| HSL | hsl(277, 53%, 48%) |
| HSV | hsv(277, 70%, 73%) |
| CMYK | cmyk(26.2%, 69.5%, 0%, 26.7%) |
| CIE-LAB | lab(41.09, 55.79, -54.01) |
| CIE-LCH | lch(41.09, 77.65, 315.93°) |
| OKLab | oklab(51.67% 0.1268 -0.1528) |
| OKLCH | oklch(51.67% 0.199 309.7) |
| XYZ | xyz(20.9122, 11.9178, 48.2028) |
| Luminance | 0.1192 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Darkorchid
#9932CC
ΔE00 3.21
Purply
#983FB2
ΔE00 3.99
Darkviolet
#9400D3
ΔE00 5.34
Blueviolet
#8A2BE2
ΔE00 5.58
Barney
#AC1DB8
ΔE00 6.42
Violet (survey)
#9A0EEA
ΔE00 6.70
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A39BB #6ABB39
analogous
#4939BB #8A39BB #BB39AB
triadic
#8A39BB #BB8A39 #39BB8A
tetradic
#8A39BB #BB4939 #6ABB39 #39ABBB
square
#8A39BB #BB4939 #6ABB39 #39ABBB
split-complementary
#8A39BB #ABBB39 #39BB49
monochromatic
#451C5D #672B8C #8A39BB #A662CF #C191DD
Accessibility & contrast
On white
6.21
#8A39BB on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.38
#8A39BB on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8A39BB
6.21:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A39BB | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8A39BB | 1.00 | 6.21 | 3.38 | 6.21 |
| #FFFFFF | 6.21 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.38 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.21 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005DBF
Deuteranopia (green-blind)
#2162B8
Tritanopia (blue-blind)
#835576
Achromatopsia (no color)
#616161
Design tokens & code
CSS
--color: #8a39bb; /* rgb */ color: rgb(138, 57, 187); /* oklch */ color: oklch(51.7% 0.199 309.7);
Tailwind
colors: {
custom: {
50: '#b076d0',
500: '#8a39bb',
950: '#000000',
},
}SCSS
$custom: #8a39bb; $custom-light: #b076d0; $custom-dark: #000000;
JSON
{
"hex": "#8a39bb",
"rgb": {
"r": 138,
"g": 57,
"b": 187
},
"hsl": {
"h": 277.385,
"s": 53.279,
"l": 47.843
},
"oklch": {
"l": 0.51672,
"c": 0.19859,
"h": 309.7
},
"luminance": 0.11917
}Semantic roles & 50–950 ramp
primary
#8A39BB
secondary
#A0C887
accent
#DD4B82
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110914
muted
#807B82