#8A4EBA#8A4EBA
#8A4EBA is a mid, vivid violet. Relative luminance 0.144; OKLCH L 54.3% C 0.168 H 307.3°. Best body text is #FFFFFF at 5.41:1 contrast (WCAG AA passes).
Color values
| HEX | #8A4EBA |
|---|---|
| RGB | rgb(138, 78, 186) |
| HSL | hsl(273, 44%, 52%) |
| HSV | hsv(273, 58%, 73%) |
| CMYK | cmyk(25.8%, 58.1%, 0%, 27.1%) |
| CIE-LAB | lab(44.80, 45.25, -47.46) |
| CIE-LCH | lch(44.80, 65.57, 313.63°) |
| OKLab | oklab(54.34% 0.102 -0.1337) |
| OKLCH | oklch(54.34% 0.168 307.3) |
| XYZ | xyz(22.0667, 14.3975, 48.0614) |
| Luminance | 0.1440 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal Purple
#7851A9
ΔE00 4.28
Purply
#983FB2
ΔE00 4.49
Deep Lavender
#8D5EB7
ΔE00 4.65
Darkorchid
#9932CC
ΔE00 5.70
Amethyst
#9B5FC0
ΔE00 6.11
Purpley
#8756E4
ΔE00 7.17
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A4EBA #7EBA4E
analogous
#544EBA #8A4EBA #BA4EB4
triadic
#8A4EBA #BA8A4E #4EBA8A
tetradic
#8A4EBA #BA544E #7EBA4E #4EB4BA
square
#8A4EBA #BA544E #7EBA4E #4EB4BA
split-complementary
#8A4EBA #B4BA4E #4EBA54
monochromatic
#4A2866 #6A3992 #8A4EBA #A77ACB #C4A6DC
Accessibility & contrast
On white
5.41
#8A4EBA on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.88
#8A4EBA on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8A4EBA
5.41:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A4EBA | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8A4EBA | 1.00 | 5.41 | 3.88 | 5.41 |
| #FFFFFF | 5.41 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.88 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.41 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#2568BE
Deuteranopia (green-blind)
#3D6BB7
Tritanopia (blue-blind)
#83637C
Achromatopsia (no color)
#6A6A6A
Design tokens & code
CSS
--color: #8a4eba; /* rgb */ color: rgb(138, 78, 186); /* oklch */ color: oklch(54.3% 0.168 307.3);
Tailwind
colors: {
custom: {
50: '#af82cf',
500: '#8a4eba',
950: '#000000',
},
}SCSS
$custom: #8a4eba; $custom-light: #af82cf; $custom-dark: #000000;
JSON
{
"hex": "#8a4eba",
"rgb": {
"r": 138,
"g": 78,
"b": 186
},
"hsl": {
"h": 273.333,
"s": 43.902,
"l": 51.765
},
"oklch": {
"l": 0.54335,
"c": 0.16817,
"h": 307.3
},
"luminance": 0.14397
}Semantic roles & 50–950 ramp
primary
#8A4EBA
secondary
#AFCA9A
accent
#D4548D
background
#FBF8FC
surface
#F6EFF9
border
#D0CAD2
text
#110B14
muted
#807C82