#8A3FAF#8A3FAF
#8A3FAF is a mid, vivid purple. Relative luminance 0.121; OKLCH L 51.6% C 0.178 H 312.7°. Best body text is #FFFFFF at 6.16:1 contrast (WCAG AA passes).
Color values
| HEX | #8A3FAF |
|---|---|
| RGB | rgb(138, 63, 175) |
| HSL | hsl(280, 47%, 47%) |
| HSV | hsv(280, 64%, 69%) |
| CMYK | cmyk(21.1%, 64%, 0%, 31.4%) |
| CIE-LAB | lab(41.30, 50.38, -46.59) |
| CIE-LCH | lch(41.30, 68.62, 317.24°) |
| OKLab | oklab(51.58% 0.1209 -0.1311) |
| OKLCH | oklch(51.58% 0.178 312.7) |
| XYZ | xyz(19.9952, 12.0540, 41.8225) |
| Luminance | 0.1205 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Purply
#983FB2
ΔE00 2.77
Darkorchid
#9932CC
ΔE00 4.80
Royal Purple
#7851A9
ΔE00 5.70
Medium Purple
#9E43A2
ΔE00 5.89
Barney
#AC1DB8
ΔE00 6.39
Purple (survey)
#7E1E9C
ΔE00 6.99
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A3FAF #64AF3F
analogous
#523FAF #8A3FAF #AF3F9C
triadic
#8A3FAF #AF8A3F #3FAF8A
tetradic
#8A3FAF #AF523F #64AF3F #3F9CAF
square
#8A3FAF #AF523F #64AF3F #3F9CAF
split-complementary
#8A3FAF #9CAF3F #3FAF52
monochromatic
#431F55 #672F82 #8A3FAF #A664C7 #C091D7
Accessibility & contrast
On white
6.16
#8A3FAF on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.41
#8A3FAF on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8A3FAF
6.16:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A3FAF | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8A3FAF | 1.00 | 6.16 | 3.41 | 6.16 |
| #FFFFFF | 6.16 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.41 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.16 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0B5EB2
Deuteranopia (green-blind)
#3763AC
Tritanopia (blue-blind)
#865471
Achromatopsia (no color)
#616161
Design tokens & code
CSS
--color: #8a3faf; /* rgb */ color: rgb(138, 63, 175); /* oklch */ color: oklch(51.6% 0.178 312.7);
Tailwind
colors: {
custom: {
50: '#af79c7',
500: '#8a3faf',
950: '#000000',
},
}SCSS
$custom: #8a3faf; $custom-light: #af79c7; $custom-dark: #000000;
JSON
{
"hex": "#8a3faf",
"rgb": {
"r": 138,
"g": 63,
"b": 175
},
"hsl": {
"h": 280.179,
"s": 47.059,
"l": 46.667
},
"oklch": {
"l": 0.51577,
"c": 0.17833,
"h": 312.7
},
"luminance": 0.12053
}Semantic roles & 50–950 ramp
primary
#8A3FAF
secondary
#9BC387
accent
#D7517D
background
#FBF7FC
surface
#F6EEF8
border
#D0C9D1
text
#110913
muted
#807B82