#8A3EBA#8A3EBA
#8A3EBA is a mid, vivid violet. Relative luminance 0.124; OKLCH L 52.2% C 0.191 H 309.5°. Best body text is #FFFFFF at 6.04:1 contrast (WCAG AA passes).
Color values
| HEX | #8A3EBA |
|---|---|
| RGB | rgb(138, 62, 186) |
| HSL | hsl(277, 50%, 49%) |
| HSV | hsv(277, 67%, 73%) |
| CMYK | cmyk(25.8%, 66.7%, 0%, 27.1%) |
| CIE-LAB | lab(41.84, 53.29, -52.21) |
| CIE-LCH | lch(41.84, 74.60, 315.59°) |
| OKLab | oklab(52.19% 0.1214 -0.1476) |
| OKLCH | oklch(52.19% 0.191 309.5) |
| XYZ | xyz(21.0650, 12.3941, 47.7275) |
| Luminance | 0.1239 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Darkorchid
#9932CC
ΔE00 3.45
Purply
#983FB2
ΔE00 3.56
Blueviolet
#8A2BE2
ΔE00 6.02
Royal Purple
#7851A9
ΔE00 6.07
Darkviolet
#9400D3
ΔE00 6.20
Barney
#AC1DB8
ΔE00 6.64
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A3EBA #6EBA3E
analogous
#4C3EBA #8A3EBA #BA3EAC
triadic
#8A3EBA #BA8A3E #3EBA8A
tetradic
#8A3EBA #BA4C3E #6EBA3E #3EACBA
square
#8A3EBA #BA4C3E #6EBA3E #3EACBA
split-complementary
#8A3EBA #ACBA3E #3EBA4C
monochromatic
#461F5E #682F8C #8A3EBA #A668CD #C196DC
Accessibility & contrast
On white
6.04
#8A3EBA on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.48
#8A3EBA on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8A3EBA
6.04:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A3EBA | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8A3EBA | 1.00 | 6.04 | 3.48 | 6.04 |
| #FFFFFF | 6.04 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.48 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.04 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005FBE
Deuteranopia (green-blind)
#2A64B7
Tritanopia (blue-blind)
#835877
Achromatopsia (no color)
#636363
Design tokens & code
CSS
--color: #8a3eba; /* rgb */ color: rgb(138, 62, 186); /* oklch */ color: oklch(52.2% 0.191 309.5);
Tailwind
colors: {
custom: {
50: '#b079cf',
500: '#8a3eba',
950: '#000000',
},
}SCSS
$custom: #8a3eba; $custom-light: #b079cf; $custom-dark: #000000;
JSON
{
"hex": "#8a3eba",
"rgb": {
"r": 138,
"g": 62,
"b": 186
},
"hsl": {
"h": 276.774,
"s": 50,
"l": 48.627
},
"oklch": {
"l": 0.52188,
"c": 0.19111,
"h": 309.5
},
"luminance": 0.12394
}Semantic roles & 50–950 ramp
primary
#8A3EBA
secondary
#A3C88C
accent
#DA4E84
background
#FBF7FC
surface
#F6EEF9
border
#D0C9D2
text
#110914
muted
#807B82