#8A2B98#8A2B98
#8A2B98 is a mid, vivid purple. Relative luminance 0.094; OKLCH L 47.8% C 0.183 H 322.3°. Best body text is #FFFFFF at 7.29:1 contrast (WCAG AA passes).
Color values
| HEX | #8A2B98 |
|---|---|
| RGB | rgb(138, 43, 152) |
| HSL | hsl(292, 56%, 38%) |
| HSV | hsv(292, 72%, 60%) |
| CMYK | cmyk(9.2%, 71.7%, 0%, 40.4%) |
| CIE-LAB | lab(36.74, 54.45, -40.10) |
| CIE-LCH | lch(36.74, 67.62, 323.63°) |
| OKLab | oklab(47.84% 0.1446 -0.112) |
| OKLCH | oklch(47.84% 0.183 322.3) |
| XYZ | xyz(17.0120, 9.3990, 30.6178) |
| Luminance | 0.0940 (WCAG relative) |
| Temperature | neutral |
| Family | purple |
Closest named colors
Warm Purple
#952E8F
ΔE00 3.67
Purple (survey)
#7E1E9C
ΔE00 3.79
Barney Purple
#A00498
ΔE00 4.40
Darkmagenta
#8B008B
ΔE00 4.45
Purple
#800080
ΔE00 6.14
Purply
#983FB2
ΔE00 6.21
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A2B98 #39982B
analogous
#542B98 #8A2B98 #982B6F
triadic
#8A2B98 #988A2B #2B988A
tetradic
#8A2B98 #98542B #39982B #2B6F98
square
#8A2B98 #98542B #39982B #2B6F98
split-complementary
#8A2B98 #6F982B #2B9854
monochromatic
#331039 #5F1E68 #8A2B98 #B539C7 #C769D5
Accessibility & contrast
On white
7.29
#8A2B98 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.88
#8A2B98 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #8A2B98
7.29:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A2B98 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8A2B98 | 1.00 | 7.29 | 2.88 | 7.29 |
| #FFFFFF | 7.29 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.88 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.29 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00509B
Deuteranopia (green-blind)
#3A5A95
Tritanopia (blue-blind)
#8C3E5F
Achromatopsia (no color)
#565656
Design tokens & code
CSS
--color: #8a2b98; /* rgb */ color: rgb(138, 43, 152); /* oklch */ color: oklch(47.8% 0.183 322.3);
Tailwind
colors: {
custom: {
50: '#b06eb7',
500: '#8a2b98',
950: '#000000',
},
}SCSS
$custom: #8a2b98; $custom-light: #b06eb7; $custom-dark: #000000;
JSON
{
"hex": "#8a2b98",
"rgb": {
"r": 138,
"g": 43,
"b": 152
},
"hsl": {
"h": 292.294,
"s": 55.897,
"l": 38.235
},
"oklch": {
"l": 0.47841,
"c": 0.18288,
"h": 322.3
},
"luminance": 0.09398
}Semantic roles & 50–950 ramp
primary
#8A2B98
secondary
#6FBB64
accent
#DF495C
background
#FBF6FB
surface
#F6ECF6
border
#D0C7D0
text
#110811
muted
#807B80