#8A3FB7#8A3FB7
#8A3FB7 is a mid, vivid violet. Relative luminance 0.124; OKLCH L 52.1% C 0.187 H 310.2°. Best body text is #FFFFFF at 6.04:1 contrast (WCAG AA passes).
Color values
| HEX | #8A3FB7 |
|---|---|
| RGB | rgb(138, 63, 183) |
| HSL | hsl(278, 49%, 48%) |
| HSV | hsv(278, 66%, 72%) |
| CMYK | cmyk(24.6%, 65.6%, 0%, 28.2%) |
| CIE-LAB | lab(41.81, 52.15, -50.49) |
| CIE-LCH | lch(41.81, 72.58, 315.93°) |
| OKLab | oklab(52.11% 0.1205 -0.1425) |
| OKLCH | oklch(52.11% 0.187 310.2) |
| XYZ | xyz(20.8043, 12.3776, 46.0837) |
| Luminance | 0.1238 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purply
#983FB2
ΔE00 3.24
Darkorchid
#9932CC
ΔE00 3.81
Royal Purple
#7851A9
ΔE00 5.81
Blueviolet
#8A2BE2
ΔE00 6.54
Barney
#AC1DB8
ΔE00 6.59
Darkviolet
#9400D3
ΔE00 6.60
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A3FB7 #6CB73F
analogous
#4E3FB7 #8A3FB7 #B73FA8
triadic
#8A3FB7 #B78A3F #3FB78A
tetradic
#8A3FB7 #B74E3F #6CB73F #3FA8B7
square
#8A3FB7 #B74E3F #6CB73F #3FA8B7
split-complementary
#8A3FB7 #A8B73F #3FB74E
monochromatic
#45205C #682F89 #8A3FB7 #A668CB #C196DB
Accessibility & contrast
On white
6.04
#8A3FB7 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.48
#8A3FB7 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8A3FB7
6.04:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A3FB7 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8A3FB7 | 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)
#005FBB
Deuteranopia (green-blind)
#2F64B4
Tritanopia (blue-blind)
#845775
Achromatopsia (no color)
#636363
Design tokens & code
CSS
--color: #8a3fb7; /* rgb */ color: rgb(138, 63, 183); /* oklch */ color: oklch(52.1% 0.187 310.2);
Tailwind
colors: {
custom: {
50: '#b079cd',
500: '#8a3fb7',
950: '#000000',
},
}SCSS
$custom: #8a3fb7; $custom-light: #b079cd; $custom-dark: #000000;
JSON
{
"hex": "#8a3fb7",
"rgb": {
"r": 138,
"g": 63,
"b": 183
},
"hsl": {
"h": 277.5,
"s": 48.78,
"l": 48.235
},
"oklch": {
"l": 0.52107,
"c": 0.18665,
"h": 310.2
},
"luminance": 0.12377
}Semantic roles & 50–950 ramp
primary
#8A3FB7
secondary
#A2C68B
accent
#D84F83
background
#FBF7FC
surface
#F6EEF9
border
#D0C9D2
text
#110913
muted
#807B82