#8A27A1#8A27A1
#8A27A1 is a mid, vivid purple. Relative luminance 0.094; OKLCH L 48.1% C 0.195 H 319.2°. Best body text is #FFFFFF at 7.28:1 contrast (WCAG AA passes).
Color values
| HEX | #8A27A1 |
|---|---|
| RGB | rgb(138, 39, 161) |
| HSL | hsl(289, 61%, 39%) |
| HSV | hsv(289, 76%, 63%) |
| CMYK | cmyk(14.3%, 75.8%, 0%, 36.9%) |
| CIE-LAB | lab(36.80, 57.63, -45.45) |
| CIE-LCH | lch(36.80, 73.40, 321.74°) |
| OKLab | oklab(48.06% 0.1479 -0.1276) |
| OKLCH | oklch(48.06% 0.195 319.2) |
| XYZ | xyz(17.6389, 9.4284, 34.6021) |
| Luminance | 0.0943 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Purple (survey)
#7E1E9C
ΔE00 2.91
Barney Purple
#A00498
ΔE00 4.98
Darkmagenta
#8B008B
ΔE00 5.04
Warm Purple
#952E8F
ΔE00 5.21
Purply
#983FB2
ΔE00 5.93
Barney
#AC1DB8
ΔE00 6.43
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A27A1 #3EA127
analogous
#4D27A1 #8A27A1 #A1277B
triadic
#8A27A1 #A18A27 #27A18A
tetradic
#8A27A1 #A14D27 #3EA127 #277BA1
square
#8A27A1 #A14D27 #3EA127 #277BA1
split-complementary
#8A27A1 #7BA127 #27A14D
monochromatic
#360F3E #601B70 #8A27A1 #B237CE #C568DA
Accessibility & contrast
On white
7.28
#8A27A1 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.89
#8A27A1 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #8A27A1
7.28:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A27A1 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8A27A1 | 1.00 | 7.28 | 2.89 | 7.28 |
| #FFFFFF | 7.28 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.89 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.28 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0050A4
Deuteranopia (green-blind)
#305A9E
Tritanopia (blue-blind)
#8A4063
Achromatopsia (no color)
#575757
Design tokens & code
CSS
--color: #8a27a1; /* rgb */ color: rgb(138, 39, 161); /* oklch */ color: oklch(48.1% 0.195 319.2);
Tailwind
colors: {
custom: {
50: '#b06cbd',
500: '#8a27a1',
950: '#000000',
},
}SCSS
$custom: #8a27a1; $custom-light: #b06cbd; $custom-dark: #000000;
JSON
{
"hex": "#8a27a1",
"rgb": {
"r": 138,
"g": 39,
"b": 161
},
"hsl": {
"h": 288.689,
"s": 61,
"l": 39.216
},
"oklch": {
"l": 0.48064,
"c": 0.19531,
"h": 319.2
},
"luminance": 0.09428
}Semantic roles & 50–950 ramp
primary
#8A27A1
secondary
#75C063
accent
#E44462
background
#FBF6FB
surface
#F6ECF7
border
#D0C7D0
text
#110712
muted
#807A81