#8B28B9#8B28B9
#8B28B9 is a mid, highly saturated purple. Relative luminance 0.105; OKLCH L 50.0% C 0.216 H 312.0°. Best body text is #FFFFFF at 6.77:1 contrast (WCAG AA passes).
Color values
| HEX | #8B28B9 |
|---|---|
| RGB | rgb(139, 40, 185) |
| HSL | hsl(281, 64%, 44%) |
| HSV | hsv(281, 78%, 73%) |
| CMYK | cmyk(24.9%, 78.4%, 0%, 27.5%) |
| CIE-LAB | lab(38.74, 62.24, -56.61) |
| CIE-LCH | lch(38.74, 84.13, 317.71°) |
| OKLab | oklab(50% 0.1445 -0.1603) |
| OKLCH | oklch(50% 0.216 312) |
| XYZ | xyz(20.1616, 10.5099, 46.8561) |
| Luminance | 0.1051 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Darkviolet
#9400D3
ΔE00 3.86
Darkorchid
#9932CC
ΔE00 4.25
Purple (survey)
#7E1E9C
ΔE00 5.12
Purply
#983FB2
ΔE00 5.51
Blueviolet
#8A2BE2
ΔE00 5.93
Barney
#AC1DB8
ΔE00 6.15
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8B28B9 #56B928
analogous
#4328B9 #8B28B9 #B9289E
triadic
#8B28B9 #B98B28 #28B98B
tetradic
#8B28B9 #B94328 #56B928 #289EB9
square
#8B28B9 #B94328 #56B928 #289EB9
split-complementary
#8B28B9 #9EB928 #28B943
monochromatic
#3F1254 #651D87 #8B28B9 #A947D7 #C179E2
Accessibility & contrast
On white
6.77
#8B28B9 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.10
#8B28B9 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8B28B9
6.77:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8B28B9 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8B28B9 | 1.00 | 6.77 | 3.10 | 6.77 |
| #FFFFFF | 6.77 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.10 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.77 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0057BD
Deuteranopia (green-blind)
#085DB6
Tritanopia (blue-blind)
#854B70
Achromatopsia (no color)
#5B5B5B
Design tokens & code
CSS
--color: #8b28b9; /* rgb */ color: rgb(139, 40, 185); /* oklch */ color: oklch(50.0% 0.216 312.0);
Tailwind
colors: {
custom: {
50: '#b26ecf',
500: '#8b28b9',
950: '#000000',
},
}SCSS
$custom: #8b28b9; $custom-light: #b26ecf; $custom-dark: #000000;
JSON
{
"hex": "#8b28b9",
"rgb": {
"r": 139,
"g": 40,
"b": 185
},
"hsl": {
"h": 280.966,
"s": 64.444,
"l": 44.118
},
"oklch": {
"l": 0.49998,
"c": 0.21584,
"h": 312
},
"luminance": 0.10509
}Semantic roles & 50–950 ramp
primary
#8B28B9
secondary
#8ECA73
accent
#E74075
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110814
muted
#807B82