#8A3FB6#8A3FB6
#8A3FB6 is a mid, vivid violet. Relative luminance 0.123; OKLCH L 52.0% C 0.186 H 310.5°. Best body text is #FFFFFF at 6.06:1 contrast (WCAG AA passes).
Color values
| HEX | #8A3FB6 |
|---|---|
| RGB | rgb(138, 63, 182) |
| HSL | hsl(278, 49%, 48%) |
| HSV | hsv(278, 65%, 71%) |
| CMYK | cmyk(24.2%, 65.4%, 0%, 28.6%) |
| CIE-LAB | lab(41.75, 51.93, -50.01) |
| CIE-LCH | lch(41.75, 72.09, 316.08°) |
| OKLab | oklab(52.04% 0.1206 -0.1411) |
| OKLCH | oklch(52.04% 0.186 310.5) |
| XYZ | xyz(20.7006, 12.3361, 45.5375) |
| Luminance | 0.1234 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purply
#983FB2
ΔE00 3.16
Darkorchid
#9932CC
ΔE00 3.92
Royal Purple
#7851A9
ΔE00 5.78
Barney
#AC1DB8
ΔE00 6.55
Darkviolet
#9400D3
ΔE00 6.68
Blueviolet
#8A2BE2
ΔE00 6.70
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A3FB6 #6BB63F
analogous
#4E3FB6 #8A3FB6 #B63FA6
triadic
#8A3FB6 #B68A3F #3FB68A
tetradic
#8A3FB6 #B64E3F #6BB63F #3FA6B6
square
#8A3FB6 #B64E3F #6BB63F #3FA6B6
split-complementary
#8A3FB6 #A6B63F #3FB64E
monochromatic
#45205B #682F89 #8A3FB6 #A668CB #C195DA
Accessibility & contrast
On white
6.06
#8A3FB6 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.47
#8A3FB6 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8A3FB6
6.06:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A3FB6 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8A3FB6 | 1.00 | 6.06 | 3.47 | 6.06 |
| #FFFFFF | 6.06 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.47 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.06 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005FBA
Deuteranopia (green-blind)
#3064B3
Tritanopia (blue-blind)
#845775
Achromatopsia (no color)
#626262
Design tokens & code
CSS
--color: #8a3fb6; /* rgb */ color: rgb(138, 63, 182); /* oklch */ color: oklch(52.0% 0.186 310.5);
Tailwind
colors: {
custom: {
50: '#b079cc',
500: '#8a3fb6',
950: '#000000',
},
}SCSS
$custom: #8a3fb6; $custom-light: #b079cc; $custom-dark: #000000;
JSON
{
"hex": "#8a3fb6",
"rgb": {
"r": 138,
"g": 63,
"b": 182
},
"hsl": {
"h": 277.815,
"s": 48.571,
"l": 48.039
},
"oklch": {
"l": 0.5204,
"c": 0.1856,
"h": 310.5
},
"luminance": 0.12336
}Semantic roles & 50–950 ramp
primary
#8A3FB6
secondary
#A1C68B
accent
#D85082
background
#FBF7FC
surface
#F6EEF9
border
#D0C9D2
text
#110913
muted
#807B82