#8A2FA8#8A2FA8
#8A2FA8 is a mid, vivid purple. Relative luminance 0.103; OKLCH L 49.3% C 0.193 H 316.4°. Best body text is #FFFFFF at 6.88:1 contrast (WCAG AA passes).
Color values
| HEX | #8A2FA8 |
|---|---|
| RGB | rgb(138, 47, 168) |
| HSL | hsl(285, 56%, 42%) |
| HSV | hsv(285, 72%, 66%) |
| CMYK | cmyk(17.9%, 72%, 0%, 34.1%) |
| CIE-LAB | lab(38.31, 56.00, -47.22) |
| CIE-LCH | lch(38.31, 73.25, 319.86°) |
| OKLab | oklab(49.29% 0.1393 -0.1328) |
| OKLCH | oklch(49.29% 0.193 316.4) |
| XYZ | xyz(18.5645, 10.2642, 38.0415) |
| Luminance | 0.1026 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Purple (survey)
#7E1E9C
ΔE00 4.03
Purply
#983FB2
ΔE00 4.62
Darkorchid
#9932CC
ΔE00 5.89
Barney
#AC1DB8
ΔE00 5.96
Warm Purple
#952E8F
ΔE00 5.96
Barney Purple
#A00498
ΔE00 6.08
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A2FA8 #4DA82F
analogous
#4E2FA8 #8A2FA8 #A82F8A
triadic
#8A2FA8 #A88A2F #2FA88A
tetradic
#8A2FA8 #A84E2F #4DA82F #2F8AA8
square
#8A2FA8 #A84E2F #4DA82F #2F8AA8
split-complementary
#8A2FA8 #8AA82F #2FA84E
monochromatic
#3B1448 #632278 #8A2FA8 #AB48CC #C178D9
Accessibility & contrast
On white
6.88
#8A2FA8 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.05
#8A2FA8 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8A2FA8
6.88:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A2FA8 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8A2FA8 | 1.00 | 6.88 | 3.05 | 6.88 |
| #FFFFFF | 6.88 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.05 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.88 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0055AB
Deuteranopia (green-blind)
#2F5DA5
Tritanopia (blue-blind)
#884869
Achromatopsia (no color)
#5A5A5A
Design tokens & code
CSS
--color: #8a2fa8; /* rgb */ color: rgb(138, 47, 168); /* oklch */ color: oklch(49.3% 0.193 316.4);
Tailwind
colors: {
custom: {
50: '#b070c2',
500: '#8a2fa8',
950: '#000000',
},
}SCSS
$custom: #8a2fa8; $custom-light: #b070c2; $custom-dark: #000000;
JSON
{
"hex": "#8a2fa8",
"rgb": {
"r": 138,
"g": 47,
"b": 168
},
"hsl": {
"h": 285.124,
"s": 56.279,
"l": 42.157
},
"oklch": {
"l": 0.49289,
"c": 0.19252,
"h": 316.4
},
"luminance": 0.10263
}Semantic roles & 50–950 ramp
primary
#8A2FA8
secondary
#85C171
accent
#E0486E
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110812
muted
#807B81