#8A22B5#8A22B5
#8A22B5 is a mid, highly saturated purple. Relative luminance 0.099; OKLCH L 49.1% C 0.217 H 313.1°. Best body text is #FFFFFF at 7.05:1 contrast (WCAG AA passes).
Color values
| HEX | #8A22B5 |
|---|---|
| RGB | rgb(138, 34, 181) |
| HSL | hsl(282, 68%, 42%) |
| HSV | hsv(282, 81%, 71%) |
| CMYK | cmyk(23.8%, 81.2%, 0%, 29%) |
| CIE-LAB | lab(37.63, 63.17, -56.05) |
| CIE-LCH | lch(37.63, 84.46, 318.42°) |
| OKLab | oklab(49.1% 0.1487 -0.1587) |
| OKLCH | oklch(49.1% 0.217 313.1) |
| XYZ | xyz(19.3923, 9.8841, 44.5934) |
| Luminance | 0.0988 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Darkviolet
#9400D3
ΔE00 4.17
Purple (survey)
#7E1E9C
ΔE00 4.22
Darkorchid
#9932CC
ΔE00 5.22
Purply
#983FB2
ΔE00 6.17
Barney
#AC1DB8
ΔE00 6.43
Blueviolet
#8A2BE2
ΔE00 6.72
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A22B5 #4DB522
analogous
#4122B5 #8A22B5 #B52297
triadic
#8A22B5 #B58A22 #22B58A
tetradic
#8A22B5 #B54122 #4DB522 #2297B5
square
#8A22B5 #B54122 #4DB522 #2297B5
split-complementary
#8A22B5 #97B522 #22B541
monochromatic
#3B0F4E #631881 #8A22B5 #AB3ADA #C16EE4
Accessibility & contrast
On white
7.05
#8A22B5 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.98
#8A22B5 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #8A22B5
7.05:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A22B5 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8A22B5 | 1.00 | 7.05 | 2.98 | 7.05 |
| #FFFFFF | 7.05 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.98 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.05 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0053B9
Deuteranopia (green-blind)
#065BB2
Tritanopia (blue-blind)
#85476D
Achromatopsia (no color)
#595959
Design tokens & code
CSS
--color: #8a22b5; /* rgb */ color: rgb(138, 34, 181); /* oklch */ color: oklch(49.1% 0.217 313.1);
Tailwind
colors: {
custom: {
50: '#b16bcc',
500: '#8a22b5',
950: '#000000',
},
}SCSS
$custom: #8a22b5; $custom-light: #b16bcc; $custom-dark: #000000;
JSON
{
"hex": "#8a22b5",
"rgb": {
"r": 138,
"g": 34,
"b": 181
},
"hsl": {
"h": 282.449,
"s": 68.372,
"l": 42.157
},
"oklch": {
"l": 0.49097,
"c": 0.21747,
"h": 313.1
},
"luminance": 0.09884
}Semantic roles & 50–950 ramp
primary
#8A22B5
secondary
#85CA69
accent
#EB3D70
background
#FBF6FC
surface
#F6ECF9
border
#D0C7D2
text
#110713
muted
#807A82