#8A3CAC#8A3CAC
#8A3CAC is a mid, vivid purple. Relative luminance 0.116; OKLCH L 51.0% C 0.179 H 314.0°. Best body text is #FFFFFF at 6.32:1 contrast (WCAG AA passes).
Color values
| HEX | #8A3CAC |
|---|---|
| RGB | rgb(138, 60, 172) |
| HSL | hsl(282, 48%, 45%) |
| HSV | hsv(282, 65%, 67%) |
| CMYK | cmyk(19.8%, 65.1%, 0%, 32.5%) |
| CIE-LAB | lab(40.60, 51.16, -45.94) |
| CIE-LCH | lch(40.60, 68.76, 318.08°) |
| OKLab | oklab(51.01% 0.1246 -0.1292) |
| OKLCH | oklch(51.01% 0.179 314) |
| XYZ | xyz(19.5422, 11.6142, 40.2341) |
| Luminance | 0.1161 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Purply
#983FB2
ΔE00 2.96
Darkorchid
#9932CC
ΔE00 5.10
Medium Purple
#9E43A2
ΔE00 5.81
Barney
#AC1DB8
ΔE00 6.17
Royal Purple
#7851A9
ΔE00 6.22
Purple (survey)
#7E1E9C
ΔE00 6.28
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A3CAC #5EAC3C
analogous
#523CAC #8A3CAC #AC3C96
triadic
#8A3CAC #AC8A3C #3CAC8A
tetradic
#8A3CAC #AC523C #5EAC3C #3C96AC
square
#8A3CAC #AC523C #5EAC3C #3C96AC
split-complementary
#8A3CAC #96AC3C #3CAC52
monochromatic
#411C51 #662C7F #8A3CAC #A75EC7 #C08CD7
Accessibility & contrast
On white
6.32
#8A3CAC on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.32
#8A3CAC on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8A3CAC
6.32:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A3CAC | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8A3CAC | 1.00 | 6.32 | 3.32 | 6.32 |
| #FFFFFF | 6.32 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.32 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.32 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#065BAF
Deuteranopia (green-blind)
#3762A9
Tritanopia (blue-blind)
#87516F
Achromatopsia (no color)
#606060
Design tokens & code
CSS
--color: #8a3cac; /* rgb */ color: rgb(138, 60, 172); /* oklch */ color: oklch(51.0% 0.179 314.0);
Tailwind
colors: {
custom: {
50: '#af77c5',
500: '#8a3cac',
950: '#000000',
},
}SCSS
$custom: #8a3cac; $custom-light: #af77c5; $custom-dark: #000000;
JSON
{
"hex": "#8a3cac",
"rgb": {
"r": 138,
"g": 60,
"b": 172
},
"hsl": {
"h": 281.786,
"s": 48.276,
"l": 45.49
},
"oklch": {
"l": 0.51008,
"c": 0.17948,
"h": 314
},
"luminance": 0.11614
}Semantic roles & 50–950 ramp
primary
#8A3CAC
secondary
#96C182
accent
#D85079
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110913
muted
#807B82