#8A3FAC#8A3FAC
#8A3FAC is a mid, vivid purple. Relative luminance 0.119; OKLCH L 51.4% C 0.175 H 313.7°. Best body text is #FFFFFF at 6.20:1 contrast (WCAG AA passes).
Color values
| HEX | #8A3FAC |
|---|---|
| RGB | rgb(138, 63, 172) |
| HSL | hsl(281, 46%, 46%) |
| HSV | hsv(281, 63%, 67%) |
| CMYK | cmyk(19.8%, 63.4%, 0%, 32.5%) |
| CIE-LAB | lab(41.12, 49.73, -45.11) |
| CIE-LCH | lch(41.12, 67.14, 317.79°) |
| OKLab | oklab(51.38% 0.121 -0.1267) |
| OKLCH | oklch(51.38% 0.175 313.7) |
| XYZ | xyz(19.7039, 11.9374, 40.2879) |
| Luminance | 0.1194 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Purply
#983FB2
ΔE00 2.74
Darkorchid
#9932CC
ΔE00 5.22
Medium Purple
#9E43A2
ΔE00 5.56
Royal Purple
#7851A9
ΔE00 5.75
Barney
#AC1DB8
ΔE00 6.39
Purple (survey)
#7E1E9C
ΔE00 6.84
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A3FAC #61AC3F
analogous
#533FAC #8A3FAC #AC3F97
triadic
#8A3FAC #AC8A3F #3FAC8A
tetradic
#8A3FAC #AC533F #61AC3F #3F97AC
square
#8A3FAC #AC533F #61AC3F #3F97AC
split-complementary
#8A3FAC #97AC3F #3FAC53
monochromatic
#421E52 #662F7F #8A3FAC #A763C6 #C08FD6
Accessibility & contrast
On white
6.20
#8A3FAC on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.39
#8A3FAC on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8A3FAC
6.20:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A3FAC | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8A3FAC | 1.00 | 6.20 | 3.39 | 6.20 |
| #FFFFFF | 6.20 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.39 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.20 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#135DAF
Deuteranopia (green-blind)
#3A63A9
Tritanopia (blue-blind)
#875370
Achromatopsia (no color)
#616161
Design tokens & code
CSS
--color: #8a3fac; /* rgb */ color: rgb(138, 63, 172); /* oklch */ color: oklch(51.4% 0.175 313.7);
Tailwind
colors: {
custom: {
50: '#af79c5',
500: '#8a3fac',
950: '#000000',
},
}SCSS
$custom: #8a3fac; $custom-light: #af79c5; $custom-dark: #000000;
JSON
{
"hex": "#8a3fac",
"rgb": {
"r": 138,
"g": 63,
"b": 172
},
"hsl": {
"h": 281.284,
"s": 46.383,
"l": 46.078
},
"oklch": {
"l": 0.51384,
"c": 0.17522,
"h": 313.7
},
"luminance": 0.11937
}Semantic roles & 50–950 ramp
primary
#8A3FAC
secondary
#98C186
accent
#D6527B
background
#FBF7FC
surface
#F6EEF8
border
#D0C9D1
text
#110913
muted
#807B82