#8A3FB5#8A3FB5
#8A3FB5 is a mid, vivid violet. Relative luminance 0.123; OKLCH L 52.0% C 0.185 H 310.8°. Best body text is #FFFFFF at 6.07:1 contrast (WCAG AA passes).
Color values
| HEX | #8A3FB5 |
|---|---|
| RGB | rgb(138, 63, 181) |
| HSL | hsl(278, 48%, 48%) |
| HSV | hsv(278, 65%, 71%) |
| CMYK | cmyk(23.8%, 65.2%, 0%, 29%) |
| CIE-LAB | lab(41.68, 51.70, -49.52) |
| CIE-LCH | lch(41.68, 71.59, 316.24°) |
| OKLab | oklab(51.97% 0.1206 -0.1397) |
| OKLCH | oklch(51.97% 0.185 310.8) |
| XYZ | xyz(20.5977, 12.2949, 44.9952) |
| Luminance | 0.1229 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purply
#983FB2
ΔE00 3.08
Darkorchid
#9932CC
ΔE00 4.03
Royal Purple
#7851A9
ΔE00 5.75
Barney
#AC1DB8
ΔE00 6.52
Medium Purple
#9E43A2
ΔE00 6.60
Darkviolet
#9400D3
ΔE00 6.77
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A3FB5 #6AB53F
analogous
#4F3FB5 #8A3FB5 #B53FA5
triadic
#8A3FB5 #B58A3F #3FB58A
tetradic
#8A3FB5 #B54F3F #6AB53F #3FA5B5
square
#8A3FB5 #B54F3F #6AB53F #3FA5B5
split-complementary
#8A3FB5 #A5B53F #3FB54F
monochromatic
#451F5A #672F88 #8A3FB5 #A667CA #C194DA
Accessibility & contrast
On white
6.07
#8A3FB5 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.46
#8A3FB5 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8A3FB5
6.07:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A3FB5 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8A3FB5 | 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)
#005FB9
Deuteranopia (green-blind)
#3164B2
Tritanopia (blue-blind)
#855774
Achromatopsia (no color)
#626262
Design tokens & code
CSS
--color: #8a3fb5; /* rgb */ color: rgb(138, 63, 181); /* oklch */ color: oklch(52.0% 0.185 310.8);
Tailwind
colors: {
custom: {
50: '#b079cc',
500: '#8a3fb5',
950: '#000000',
},
}SCSS
$custom: #8a3fb5; $custom-light: #b079cc; $custom-dark: #000000;
JSON
{
"hex": "#8a3fb5",
"rgb": {
"r": 138,
"g": 63,
"b": 181
},
"hsl": {
"h": 278.136,
"s": 48.361,
"l": 47.843
},
"oklch": {
"l": 0.51973,
"c": 0.18457,
"h": 310.8
},
"luminance": 0.12294
}Semantic roles & 50–950 ramp
primary
#8A3FB5
secondary
#A0C58A
accent
#D85081
background
#FBF7FC
surface
#F6EEF9
border
#D0C9D2
text
#110913
muted
#807B82