#8A3EB8#8A3EB8
#8A3EB8 is a mid, vivid violet. Relative luminance 0.123; OKLCH L 52.1% C 0.189 H 310.0°. Best body text is #FFFFFF at 6.07:1 contrast (WCAG AA passes).
Color values
| HEX | #8A3EB8 |
|---|---|
| RGB | rgb(138, 62, 184) |
| HSL | hsl(277, 50%, 48%) |
| HSV | hsv(277, 66%, 72%) |
| CMYK | cmyk(25%, 66.3%, 0%, 27.8%) |
| CIE-LAB | lab(41.70, 52.84, -51.25) |
| CIE-LCH | lch(41.70, 73.61, 315.88°) |
| OKLab | oklab(52.05% 0.1216 -0.1447) |
| OKLCH | oklch(52.05% 0.189 310) |
| XYZ | xyz(20.8539, 12.3096, 46.6155) |
| Luminance | 0.1231 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purply
#983FB2
ΔE00 3.38
Darkorchid
#9932CC
ΔE00 3.65
Royal Purple
#7851A9
ΔE00 5.99
Blueviolet
#8A2BE2
ΔE00 6.32
Darkviolet
#9400D3
ΔE00 6.35
Barney
#AC1DB8
ΔE00 6.55
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A3EB8 #6CB83E
analogous
#4D3EB8 #8A3EB8 #B83EA9
triadic
#8A3EB8 #B88A3E #3EB88A
tetradic
#8A3EB8 #B84D3E #6CB83E #3EA9B8
square
#8A3EB8 #B84D3E #6CB83E #3EA9B8
split-complementary
#8A3EB8 #A9B83E #3EB84D
monochromatic
#451F5C #682F8A #8A3EB8 #A667CC #C195DB
Accessibility & contrast
On white
6.07
#8A3EB8 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.46
#8A3EB8 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8A3EB8
6.07:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A3EB8 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8A3EB8 | 1.00 | 6.07 | 3.46 | 6.07 |
| #FFFFFF | 6.07 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.46 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.07 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005FBC
Deuteranopia (green-blind)
#2C64B5
Tritanopia (blue-blind)
#845776
Achromatopsia (no color)
#626262
Design tokens & code
CSS
--color: #8a3eb8; /* rgb */ color: rgb(138, 62, 184); /* oklch */ color: oklch(52.1% 0.189 310.0);
Tailwind
colors: {
custom: {
50: '#b079ce',
500: '#8a3eb8',
950: '#000000',
},
}SCSS
$custom: #8a3eb8; $custom-light: #b079ce; $custom-dark: #000000;
JSON
{
"hex": "#8a3eb8",
"rgb": {
"r": 138,
"g": 62,
"b": 184
},
"hsl": {
"h": 277.377,
"s": 49.593,
"l": 48.235
},
"oklch": {
"l": 0.52051,
"c": 0.18904,
"h": 310
},
"luminance": 0.12309
}Semantic roles & 50–950 ramp
primary
#8A3EB8
secondary
#A2C78B
accent
#D94F83
background
#FBF7FC
surface
#F6EEF9
border
#D0C9D2
text
#110914
muted
#807B82