#8A3FA5#8A3FA5
#8A3FA5 is a mid, vivid purple. Relative luminance 0.117; OKLCH L 50.9% C 0.168 H 316.1°. Best body text is #FFFFFF at 6.30:1 contrast (WCAG AA passes).
Color values
| HEX | #8A3FA5 |
|---|---|
| RGB | rgb(138, 63, 165) |
| HSL | hsl(284, 45%, 45%) |
| HSV | hsv(284, 62%, 65%) |
| CMYK | cmyk(16.4%, 61.8%, 0%, 35.3%) |
| CIE-LAB | lab(40.70, 48.23, -41.61) |
| CIE-LCH | lch(40.70, 63.70, 319.21°) |
| OKLab | oklab(50.94% 0.121 -0.1165) |
| OKLCH | oklch(50.94% 0.168 316.1) |
| XYZ | xyz(19.0492, 11.6756, 36.8402) |
| Luminance | 0.1168 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Purply
#983FB2
ΔE00 3.06
Medium Purple
#9E43A2
ΔE00 4.87
Warm Purple
#952E8F
ΔE00 5.89
Royal Purple
#7851A9
ΔE00 6.05
Ugly Purple
#A442A0
ΔE00 6.26
Darkorchid
#9932CC
ΔE00 6.31
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A3FA5 #5AA53F
analogous
#573FA5 #8A3FA5 #A53F8D
triadic
#8A3FA5 #A58A3F #3FA58A
tetradic
#8A3FA5 #A5573F #5AA53F #3F8DA5
square
#8A3FA5 #A5573F #5AA53F #3F8DA5
split-complementary
#8A3FA5 #8DA53F #3FA557
monochromatic
#401D4C #652E79 #8A3FA5 #A85FC2 #C08CD3
Accessibility & contrast
On white
6.30
#8A3FA5 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.34
#8A3FA5 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8A3FA5
6.30:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A3FA5 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8A3FA5 | 1.00 | 6.30 | 3.34 | 6.30 |
| #FFFFFF | 6.30 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.34 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.30 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#1F5BA8
Deuteranopia (green-blind)
#3F62A2
Tritanopia (blue-blind)
#88516C
Achromatopsia (no color)
#606060
Design tokens & code
CSS
--color: #8a3fa5; /* rgb */ color: rgb(138, 63, 165); /* oklch */ color: oklch(50.9% 0.168 316.1);
Tailwind
colors: {
custom: {
50: '#af79c0',
500: '#8a3fa5',
950: '#000000',
},
}SCSS
$custom: #8a3fa5; $custom-light: #af79c0; $custom-dark: #000000;
JSON
{
"hex": "#8a3fa5",
"rgb": {
"r": 138,
"g": 63,
"b": 165
},
"hsl": {
"h": 284.118,
"s": 44.737,
"l": 44.706
},
"oklch": {
"l": 0.50943,
"c": 0.168,
"h": 316.1
},
"luminance": 0.11675
}Semantic roles & 50–950 ramp
primary
#8A3FA5
secondary
#92BE82
accent
#D45376
background
#FBF7FB
surface
#F6EEF7
border
#D0C9D0
text
#110912
muted
#807B81