#8A39B8#8A39B8
#8A39B8 is a mid, vivid violet. Relative luminance 0.118; OKLCH L 51.5% C 0.196 H 310.6°. Best body text is #FFFFFF at 6.25:1 contrast (WCAG AA passes).
Color values
| HEX | #8A39B8 |
|---|---|
| RGB | rgb(138, 57, 184) |
| HSL | hsl(278, 53%, 47%) |
| HSV | hsv(278, 69%, 72%) |
| CMYK | cmyk(25%, 69%, 0%, 27.8%) |
| CIE-LAB | lab(40.88, 55.13, -52.57) |
| CIE-LCH | lch(40.88, 76.18, 316.36°) |
| OKLab | oklab(51.46% 0.1272 -0.1486) |
| OKLCH | oklch(51.46% 0.196 310.6) |
| XYZ | xyz(20.5944, 11.7907, 46.5290) |
| Luminance | 0.1179 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Darkorchid
#9932CC
ΔE00 3.51
Purply
#983FB2
ΔE00 3.75
Darkviolet
#9400D3
ΔE00 5.59
Blueviolet
#8A2BE2
ΔE00 6.03
Barney
#AC1DB8
ΔE00 6.27
Purple (survey)
#7E1E9C
ΔE00 6.72
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A39B8 #67B839
analogous
#4B39B8 #8A39B8 #B839A6
triadic
#8A39B8 #B88A39 #39B88A
tetradic
#8A39B8 #B84B39 #67B839 #39A6B8
square
#8A39B8 #B84B39 #67B839 #39A6B8
split-complementary
#8A39B8 #A6B839 #39B84B
monochromatic
#441C5B #672B89 #8A39B8 #A660CE #C08FDC
Accessibility & contrast
On white
6.25
#8A39B8 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.36
#8A39B8 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8A39B8
6.25:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A39B8 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8A39B8 | 1.00 | 6.25 | 3.36 | 6.25 |
| #FFFFFF | 6.25 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.36 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.25 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005DBC
Deuteranopia (green-blind)
#2662B5
Tritanopia (blue-blind)
#845474
Achromatopsia (no color)
#606060
Design tokens & code
CSS
--color: #8a39b8; /* rgb */ color: rgb(138, 57, 184); /* oklch */ color: oklch(51.5% 0.196 310.6);
Tailwind
colors: {
custom: {
50: '#b076ce',
500: '#8a39b8',
950: '#000000',
},
}SCSS
$custom: #8a39b8; $custom-light: #b076ce; $custom-dark: #000000;
JSON
{
"hex": "#8a39b8",
"rgb": {
"r": 138,
"g": 57,
"b": 184
},
"hsl": {
"h": 278.268,
"s": 52.697,
"l": 47.255
},
"oklch": {
"l": 0.51462,
"c": 0.19557,
"h": 310.6
},
"luminance": 0.1179
}Semantic roles & 50–950 ramp
primary
#8A39B8
secondary
#9DC786
accent
#DC4C80
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110914
muted
#807B82