#8A39B3#8A39B3
#8A39B3 is a mid, vivid violet. Relative luminance 0.116; OKLCH L 51.1% C 0.191 H 312.0°. Best body text is #FFFFFF at 6.33:1 contrast (WCAG AA passes).
Color values
| HEX | #8A39B3 |
|---|---|
| RGB | rgb(138, 57, 179) |
| HSL | hsl(280, 52%, 46%) |
| HSV | hsv(280, 68%, 70%) |
| CMYK | cmyk(22.9%, 68.2%, 0%, 29.8%) |
| CIE-LAB | lab(40.55, 54.05, -50.16) |
| CIE-LCH | lch(40.55, 73.74, 317.13°) |
| OKLab | oklab(51.12% 0.1276 -0.1415) |
| OKLCH | oklch(51.12% 0.191 312) |
| XYZ | xyz(20.0796, 11.5847, 43.8174) |
| Luminance | 0.1158 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purply
#983FB2
ΔE00 3.43
Darkorchid
#9932CC
ΔE00 4.10
Darkviolet
#9400D3
ΔE00 6.07
Barney
#AC1DB8
ΔE00 6.10
Purple (survey)
#7E1E9C
ΔE00 6.25
Royal Purple
#7851A9
ΔE00 6.64
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A39B3 #62B339
analogous
#4D39B3 #8A39B3 #B3399F
triadic
#8A39B3 #B38A39 #39B38A
tetradic
#8A39B3 #B34D39 #62B339 #399FB3
square
#8A39B3 #B34D39 #62B339 #399FB3
split-complementary
#8A39B3 #9FB339 #39B34D
monochromatic
#421B56 #662A85 #8A39B3 #A75ECC #C08CDA
Accessibility & contrast
On white
6.33
#8A39B3 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.32
#8A39B3 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8A39B3
6.33:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A39B3 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8A39B3 | 1.00 | 6.33 | 3.32 | 6.33 |
| #FFFFFF | 6.33 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.32 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.33 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005CB7
Deuteranopia (green-blind)
#2D61B0
Tritanopia (blue-blind)
#855271
Achromatopsia (no color)
#606060
Design tokens & code
CSS
--color: #8a39b3; /* rgb */ color: rgb(138, 57, 179); /* oklch */ color: oklch(51.1% 0.191 312.0);
Tailwind
colors: {
custom: {
50: '#b076ca',
500: '#8a39b3',
950: '#000000',
},
}SCSS
$custom: #8a39b3; $custom-light: #b076ca; $custom-dark: #000000;
JSON
{
"hex": "#8a39b3",
"rgb": {
"r": 138,
"g": 57,
"b": 179
},
"hsl": {
"h": 279.836,
"s": 51.695,
"l": 46.275
},
"oklch": {
"l": 0.51117,
"c": 0.19058,
"h": 312
},
"luminance": 0.11584
}Semantic roles & 50–950 ramp
primary
#8A39B3
secondary
#99C583
accent
#DB4D7D
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110913
muted
#807B82