#8A27A0#8A27A0
#8A27A0 is a mid, vivid purple. Relative luminance 0.094; OKLCH L 48.0% C 0.194 H 319.6°. Best body text is #FFFFFF at 7.30:1 contrast (WCAG AA passes).
Color values
| HEX | #8A27A0 |
|---|---|
| RGB | rgb(138, 39, 160) |
| HSL | hsl(289, 61%, 39%) |
| HSV | hsv(289, 76%, 63%) |
| CMYK | cmyk(13.8%, 75.6%, 0%, 37.3%) |
| CIE-LAB | lab(36.73, 57.44, -44.96) |
| CIE-LCH | lch(36.73, 72.94, 321.95°) |
| OKLab | oklab(48% 0.148 -0.1262) |
| OKLCH | oklch(48% 0.194 319.6) |
| XYZ | xyz(17.5511, 9.3933, 34.1395) |
| Luminance | 0.0939 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Purple (survey)
#7E1E9C
ΔE00 2.92
Barney Purple
#A00498
ΔE00 4.88
Darkmagenta
#8B008B
ΔE00 4.91
Warm Purple
#952E8F
ΔE00 5.06
Purply
#983FB2
ΔE00 5.99
Barney
#AC1DB8
ΔE00 6.48
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A27A0 #3DA027
analogous
#4E27A0 #8A27A0 #A0277A
triadic
#8A27A0 #A08A27 #27A08A
tetradic
#8A27A0 #A04E27 #3DA027 #277AA0
square
#8A27A0 #A04E27 #3DA027 #277AA0
split-complementary
#8A27A0 #7AA027 #27A04E
monochromatic
#350F3E #601B6F #8A27A0 #B236CE #C567DA
Accessibility & contrast
On white
7.30
#8A27A0 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.88
#8A27A0 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #8A27A0
7.30:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A27A0 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8A27A0 | 1.00 | 7.30 | 2.88 | 7.30 |
| #FFFFFF | 7.30 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.88 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.30 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0050A3
Deuteranopia (green-blind)
#315A9D
Tritanopia (blue-blind)
#8A4062
Achromatopsia (no color)
#565656
Design tokens & code
CSS
--color: #8a27a0; /* rgb */ color: rgb(138, 39, 160); /* oklch */ color: oklch(48.0% 0.194 319.6);
Tailwind
colors: {
custom: {
50: '#b06cbd',
500: '#8a27a0',
950: '#000000',
},
}SCSS
$custom: #8a27a0; $custom-light: #b06cbd; $custom-dark: #000000;
JSON
{
"hex": "#8a27a0",
"rgb": {
"r": 138,
"g": 39,
"b": 160
},
"hsl": {
"h": 289.091,
"s": 60.804,
"l": 39.02
},
"oklch": {
"l": 0.47996,
"c": 0.19445,
"h": 319.6
},
"luminance": 0.09392
}Semantic roles & 50–950 ramp
primary
#8A27A0
secondary
#74C063
accent
#E44461
background
#FBF6FB
surface
#F6ECF6
border
#D0C7D0
text
#110712
muted
#807A81