#8A30A6#8A30A6
#8A30A6 is a mid, vivid purple. Relative luminance 0.103; OKLCH L 49.3% C 0.189 H 317.0°. Best body text is #FFFFFF at 6.88:1 contrast (WCAG AA passes).
Color values
| HEX | #8A30A6 |
|---|---|
| RGB | rgb(138, 48, 166) |
| HSL | hsl(286, 55%, 42%) |
| HSV | hsv(286, 71%, 65%) |
| CMYK | cmyk(16.9%, 71.1%, 0%, 34.9%) |
| CIE-LAB | lab(38.32, 55.19, -46.00) |
| CIE-LCH | lch(38.32, 71.85, 320.19°) |
| OKLab | oklab(49.26% 0.1385 -0.1293) |
| OKLCH | oklch(49.26% 0.189 317) |
| XYZ | xyz(18.4201, 10.2711, 37.0812) |
| Luminance | 0.1027 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Purple (survey)
#7E1E9C
ΔE00 4.08
Purply
#983FB2
ΔE00 4.56
Warm Purple
#952E8F
ΔE00 5.63
Barney Purple
#A00498
ΔE00 5.93
Barney
#AC1DB8
ΔE00 6.00
Darkorchid
#9932CC
ΔE00 6.13
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A30A6 #4CA630
analogous
#4F30A6 #8A30A6 #A63087
triadic
#8A30A6 #A68A30 #30A68A
tetradic
#8A30A6 #A64F30 #4CA630 #3087A6
square
#8A30A6 #A64F30 #4CA630 #3087A6
split-complementary
#8A30A6 #87A630 #30A64F
monochromatic
#3B1547 #632277 #8A30A6 #AC49CA #C178D8
Accessibility & contrast
On white
6.88
#8A30A6 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.05
#8A30A6 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8A30A6
6.88:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A30A6 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8A30A6 | 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)
#0055A9
Deuteranopia (green-blind)
#325DA3
Tritanopia (blue-blind)
#894768
Achromatopsia (no color)
#5A5A5A
Design tokens & code
CSS
--color: #8a30a6; /* rgb */ color: rgb(138, 48, 166); /* oklch */ color: oklch(49.3% 0.189 317.0);
Tailwind
colors: {
custom: {
50: '#b070c1',
500: '#8a30a6',
950: '#000000',
},
}SCSS
$custom: #8a30a6; $custom-light: #b070c1; $custom-dark: #000000;
JSON
{
"hex": "#8a30a6",
"rgb": {
"r": 138,
"g": 48,
"b": 166
},
"hsl": {
"h": 285.763,
"s": 55.14,
"l": 41.961
},
"oklch": {
"l": 0.49256,
"c": 0.18945,
"h": 317
},
"luminance": 0.1027
}Semantic roles & 50–950 ramp
primary
#8A30A6
secondary
#84C071
accent
#DE496D
background
#FBF7FB
surface
#F6EDF7
border
#D0C8D0
text
#110812
muted
#807B81