#8A2FA9#8A2FA9
#8A2FA9 is a mid, vivid purple. Relative luminance 0.103; OKLCH L 49.4% C 0.193 H 316.0°. Best body text is #FFFFFF at 6.86:1 contrast (WCAG AA passes).
Color values
| HEX | #8A2FA9 |
|---|---|
| RGB | rgb(138, 47, 169) |
| HSL | hsl(285, 56%, 42%) |
| HSV | hsv(285, 72%, 66%) |
| CMYK | cmyk(18.3%, 72.2%, 0%, 33.7%) |
| CIE-LAB | lab(38.38, 56.20, -47.71) |
| CIE-LCH | lch(38.38, 73.72, 319.67°) |
| OKLab | oklab(49.36% 0.1392 -0.1343) |
| OKLCH | oklch(49.36% 0.193 316) |
| XYZ | xyz(18.6581, 10.3016, 38.5340) |
| Luminance | 0.1030 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Purple (survey)
#7E1E9C
ΔE00 4.09
Purply
#983FB2
ΔE00 4.59
Darkorchid
#9932CC
ΔE00 5.74
Barney
#AC1DB8
ΔE00 5.94
Warm Purple
#952E8F
ΔE00 6.12
Barney Purple
#A00498
ΔE00 6.20
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A2FA9 #4EA92F
analogous
#4D2FA9 #8A2FA9 #A92F8B
triadic
#8A2FA9 #A98A2F #2FA98A
tetradic
#8A2FA9 #A94D2F #4EA92F #2F8BA9
square
#8A2FA9 #A94D2F #4EA92F #2F8BA9
split-complementary
#8A2FA9 #8BA92F #2FA94D
monochromatic
#3C1449 #632279 #8A2FA9 #AB49CC #C179DA
Accessibility & contrast
On white
6.86
#8A2FA9 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.06
#8A2FA9 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8A2FA9
6.86:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A2FA9 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8A2FA9 | 1.00 | 6.86 | 3.06 | 6.86 |
| #FFFFFF | 6.86 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.06 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.86 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0055AC
Deuteranopia (green-blind)
#2E5DA6
Tritanopia (blue-blind)
#884869
Achromatopsia (no color)
#5A5A5A
Design tokens & code
CSS
--color: #8a2fa9; /* rgb */ color: rgb(138, 47, 169); /* oklch */ color: oklch(49.4% 0.193 316.0);
Tailwind
colors: {
custom: {
50: '#b070c3',
500: '#8a2fa9',
950: '#000000',
},
}SCSS
$custom: #8a2fa9; $custom-light: #b070c3; $custom-dark: #000000;
JSON
{
"hex": "#8a2fa9",
"rgb": {
"r": 138,
"g": 47,
"b": 169
},
"hsl": {
"h": 284.754,
"s": 56.481,
"l": 42.353
},
"oklch": {
"l": 0.49357,
"c": 0.19344,
"h": 316
},
"luminance": 0.10301
}Semantic roles & 50–950 ramp
primary
#8A2FA9
secondary
#86C272
accent
#E0486F
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110813
muted
#807B82