#8A229B#8A229B
#8A229B is a mid, vivid purple. Relative luminance 0.089; OKLCH L 47.2% C 0.195 H 321.5°. Best body text is #FFFFFF at 7.55:1 contrast (WCAG AA passes).
Color values
| HEX | #8A229B |
|---|---|
| RGB | rgb(138, 34, 155) |
| HSL | hsl(292, 64%, 37%) |
| HSV | hsv(292, 78%, 61%) |
| CMYK | cmyk(11%, 78.1%, 0%, 39.2%) |
| CIE-LAB | lab(35.82, 58.18, -43.39) |
| CIE-LCH | lch(35.82, 72.58, 323.28°) |
| OKLab | oklab(47.25% 0.1529 -0.1215) |
| OKLCH | oklch(47.25% 0.195 321.5) |
| XYZ | xyz(16.9690, 8.9148, 31.8309) |
| Luminance | 0.0891 (WCAG relative) |
| Temperature | neutral |
| Family | purple |
Closest named colors
Purple (survey)
#7E1E9C
ΔE00 2.73
Darkmagenta
#8B008B
ΔE00 3.82
Barney Purple
#A00498
ΔE00 4.34
Warm Purple
#952E8F
ΔE00 4.72
Purple
#800080
ΔE00 5.61
Purply
#983FB2
ΔE00 6.87
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A229B #339B22
analogous
#4D229B #8A229B #9B2270
triadic
#8A229B #9B8A22 #229B8A
tetradic
#8A229B #9B4D22 #339B22 #22709B
square
#8A229B #9B4D22 #339B22 #22709B
split-complementary
#8A229B #709B22 #229B4D
monochromatic
#310C37 #5D1769 #8A229B #B72DCD #C95CDB
Accessibility & contrast
On white
7.55
#8A229B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.78
#8A229B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #8A229B
7.55:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A229B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8A229B | 1.00 | 7.55 | 2.78 | 7.55 |
| #FFFFFF | 7.55 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.78 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.55 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004D9E
Deuteranopia (green-blind)
#325898
Tritanopia (blue-blind)
#8B3B5E
Achromatopsia (no color)
#545454
Design tokens & code
CSS
--color: #8a229b; /* rgb */ color: rgb(138, 34, 155); /* oklch */ color: oklch(47.2% 0.195 321.5);
Tailwind
colors: {
custom: {
50: '#b06ab9',
500: '#8a229b',
950: '#000000',
},
}SCSS
$custom: #8a229b; $custom-light: #b06ab9; $custom-dark: #000000;
JSON
{
"hex": "#8a229b",
"rgb": {
"r": 138,
"g": 34,
"b": 155
},
"hsl": {
"h": 291.57,
"s": 64.021,
"l": 37.059
},
"oklch": {
"l": 0.47246,
"c": 0.19535,
"h": 321.5
},
"luminance": 0.08914
}Semantic roles & 50–950 ramp
primary
#8A229B
secondary
#67C059
accent
#E74158
background
#FBF6FB
surface
#F6ECF6
border
#D0C7D0
text
#110711
muted
#807A80