#8B229E#8B229E
#8B229E is a mid, vivid purple. Relative luminance 0.091; OKLCH L 47.6% C 0.198 H 320.9°. Best body text is #FFFFFF at 7.45:1 contrast (WCAG AA passes).
Color values
| HEX | #8B229E |
|---|---|
| RGB | rgb(139, 34, 158) |
| HSL | hsl(291, 65%, 38%) |
| HSV | hsv(291, 78%, 62%) |
| CMYK | cmyk(12%, 78.5%, 0%, 38%) |
| CIE-LAB | lab(36.18, 58.93, -44.62) |
| CIE-LCH | lch(36.18, 73.92, 322.87°) |
| OKLab | oklab(47.6% 0.1538 -0.1251) |
| OKLCH | oklch(47.6% 0.198 320.9) |
| XYZ | xyz(17.3903, 9.1026, 33.1821) |
| Luminance | 0.0910 (WCAG relative) |
| Temperature | neutral |
| Family | purple |
Closest named colors
Purple (survey)
#7E1E9C
ΔE00 2.76
Darkmagenta
#8B008B
ΔE00 4.21
Barney Purple
#A00498
ΔE00 4.41
Warm Purple
#952E8F
ΔE00 4.94
Purple
#800080
ΔE00 6.04
Purply
#983FB2
ΔE00 6.56
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8B229E #359E22
analogous
#4D229E #8B229E #9E2273
triadic
#8B229E #9E8B22 #229E8B
tetradic
#8B229E #9E4D22 #359E22 #22739E
square
#8B229E #9E4D22 #359E22 #22739E
split-complementary
#8B229E #739E22 #229E4D
monochromatic
#320C39 #5F176C #8B229E #B72DD0 #C95EDC
Accessibility & contrast
On white
7.45
#8B229E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.82
#8B229E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #8B229E
7.45:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8B229E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8B229E | 1.00 | 7.45 | 2.82 | 7.45 |
| #FFFFFF | 7.45 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.82 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.45 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004EA1
Deuteranopia (green-blind)
#31599B
Tritanopia (blue-blind)
#8C3C60
Achromatopsia (no color)
#555555
Design tokens & code
CSS
--color: #8b229e; /* rgb */ color: rgb(139, 34, 158); /* oklch */ color: oklch(47.6% 0.198 320.9);
Tailwind
colors: {
custom: {
50: '#b16abb',
500: '#8b229e',
950: '#000000',
},
}SCSS
$custom: #8b229e; $custom-light: #b16abb; $custom-dark: #000000;
JSON
{
"hex": "#8b229e",
"rgb": {
"r": 139,
"g": 34,
"b": 158
},
"hsl": {
"h": 290.806,
"s": 64.583,
"l": 37.647
},
"oklch": {
"l": 0.47597,
"c": 0.19826,
"h": 320.9
},
"luminance": 0.09102
}Semantic roles & 50–950 ramp
primary
#8B229E
secondary
#6AC15B
accent
#E8405A
background
#FBF6FB
surface
#F6ECF6
border
#D0C7D0
text
#110712
muted
#807A81