#8A2FA7#8A2FA7
#8A2FA7 is a mid, vivid purple. Relative luminance 0.102; OKLCH L 49.2% C 0.192 H 316.7°. Best body text is #FFFFFF at 6.90:1 contrast (WCAG AA passes).
Color values
| HEX | #8A2FA7 |
|---|---|
| RGB | rgb(138, 47, 167) |
| HSL | hsl(286, 56%, 42%) |
| HSV | hsv(286, 72%, 65%) |
| CMYK | cmyk(17.4%, 71.9%, 0%, 34.5%) |
| CIE-LAB | lab(38.25, 55.80, -46.73) |
| CIE-LCH | lch(38.25, 72.78, 320.05°) |
| OKLab | oklab(49.22% 0.1394 -0.1314) |
| OKLCH | oklch(49.22% 0.192 316.7) |
| XYZ | xyz(18.4717, 10.2271, 37.5527) |
| Luminance | 0.1023 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Purple (survey)
#7E1E9C
ΔE00 3.98
Purply
#983FB2
ΔE00 4.65
Warm Purple
#952E8F
ΔE00 5.80
Barney Purple
#A00498
ΔE00 5.97
Barney
#AC1DB8
ΔE00 5.98
Darkorchid
#9932CC
ΔE00 6.03
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A2FA7 #4CA72F
analogous
#4E2FA7 #8A2FA7 #A72F88
triadic
#8A2FA7 #A78A2F #2FA78A
tetradic
#8A2FA7 #A74E2F #4CA72F #2F88A7
square
#8A2FA7 #A74E2F #4CA72F #2F88A7
split-complementary
#8A2FA7 #88A72F #2FA74E
monochromatic
#3B1447 #632277 #8A2FA7 #AC48CB #C178D9
Accessibility & contrast
On white
6.90
#8A2FA7 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.05
#8A2FA7 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8A2FA7
6.90:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A2FA7 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8A2FA7 | 1.00 | 6.90 | 3.05 | 6.90 |
| #FFFFFF | 6.90 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.05 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.90 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0055AA
Deuteranopia (green-blind)
#305DA4
Tritanopia (blue-blind)
#884768
Achromatopsia (no color)
#5A5A5A
Design tokens & code
CSS
--color: #8a2fa7; /* rgb */ color: rgb(138, 47, 167); /* oklch */ color: oklch(49.2% 0.192 316.7);
Tailwind
colors: {
custom: {
50: '#b070c2',
500: '#8a2fa7',
950: '#000000',
},
}SCSS
$custom: #8a2fa7; $custom-light: #b070c2; $custom-dark: #000000;
JSON
{
"hex": "#8a2fa7",
"rgb": {
"r": 138,
"g": 47,
"b": 167
},
"hsl": {
"h": 285.5,
"s": 56.075,
"l": 41.961
},
"oklch": {
"l": 0.49221,
"c": 0.19158,
"h": 316.7
},
"luminance": 0.10226
}Semantic roles & 50–950 ramp
primary
#8A2FA7
secondary
#84C171
accent
#DF486D
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110812
muted
#807B81