#8A3EB7#8A3EB7
#8A3EB7 is a mid, vivid violet. Relative luminance 0.123; OKLCH L 52.0% C 0.188 H 310.3°. Best body text is #FFFFFF at 6.08:1 contrast (WCAG AA passes).
Color values
| HEX | #8A3EB7 |
|---|---|
| RGB | rgb(138, 62, 183) |
| HSL | hsl(278, 49%, 48%) |
| HSV | hsv(278, 66%, 72%) |
| CMYK | cmyk(24.6%, 66.1%, 0%, 28.2%) |
| CIE-LAB | lab(41.64, 52.62, -50.76) |
| CIE-LCH | lch(41.64, 73.12, 316.03°) |
| OKLab | oklab(51.98% 0.1217 -0.1433) |
| OKLCH | oklch(51.98% 0.188 310.3) |
| XYZ | xyz(20.7495, 12.2679, 46.0654) |
| Luminance | 0.1227 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purply
#983FB2
ΔE00 3.29
Darkorchid
#9932CC
ΔE00 3.75
Royal Purple
#7851A9
ΔE00 5.95
Darkviolet
#9400D3
ΔE00 6.43
Blueviolet
#8A2BE2
ΔE00 6.47
Barney
#AC1DB8
ΔE00 6.51
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A3EB7 #6BB73E
analogous
#4D3EB7 #8A3EB7 #B73EA7
triadic
#8A3EB7 #B78A3E #3EB78A
tetradic
#8A3EB7 #B74D3E #6BB73E #3EA7B7
square
#8A3EB7 #B74D3E #6BB73E #3EA7B7
split-complementary
#8A3EB7 #A7B73E #3EB74D
monochromatic
#451F5C #682F89 #8A3EB7 #A667CB #C194DB
Accessibility & contrast
On white
6.08
#8A3EB7 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.45
#8A3EB7 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8A3EB7
6.08:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A3EB7 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8A3EB7 | 1.00 | 6.08 | 3.45 | 6.08 |
| #FFFFFF | 6.08 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.45 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.08 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005FBB
Deuteranopia (green-blind)
#2E63B4
Tritanopia (blue-blind)
#845775
Achromatopsia (no color)
#626262
Design tokens & code
CSS
--color: #8a3eb7; /* rgb */ color: rgb(138, 62, 183); /* oklch */ color: oklch(52.0% 0.188 310.3);
Tailwind
colors: {
custom: {
50: '#b078cd',
500: '#8a3eb7',
950: '#000000',
},
}SCSS
$custom: #8a3eb7; $custom-light: #b078cd; $custom-dark: #000000;
JSON
{
"hex": "#8a3eb7",
"rgb": {
"r": 138,
"g": 62,
"b": 183
},
"hsl": {
"h": 277.686,
"s": 49.388,
"l": 48.039
},
"oklch": {
"l": 0.51983,
"c": 0.18801,
"h": 310.3
},
"luminance": 0.12267
}Semantic roles & 50–950 ramp
primary
#8A3EB7
secondary
#A1C68A
accent
#D94F82
background
#FBF7FC
surface
#F6EEF9
border
#D0C9D2
text
#110913
muted
#807B82