#8B48CA#8B48CA
#8B48CA is a mid, vivid violet. Relative luminance 0.144; OKLCH L 54.7% C 0.195 H 304.4°. Best body text is #FFFFFF at 5.42:1 contrast (WCAG AA passes).
Color values
| HEX | #8B48CA |
|---|---|
| RGB | rgb(139, 72, 202) |
| HSL | hsl(271, 55%, 54%) |
| HSV | hsv(271, 64%, 79%) |
| CMYK | cmyk(31.2%, 64.4%, 0%, 20.8%) |
| CIE-LAB | lab(44.78, 52.36, -56.76) |
| CIE-LCH | lch(44.78, 77.23, 312.69°) |
| OKLab | oklab(54.68% 0.1101 -0.161) |
| OKLCH | oklch(54.68% 0.195 304.4) |
| XYZ | xyz(23.6231, 14.3881, 57.3983) |
| Luminance | 0.1439 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Darkorchid
#9932CC
ΔE00 4.10
Blueviolet
#8A2BE2
ΔE00 5.51
Purply
#983FB2
ΔE00 5.51
Purpley
#8756E4
ΔE00 5.53
Royal Purple
#7851A9
ΔE00 6.31
Deep Lavender
#8D5EB7
ΔE00 6.77
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8B48CA #87CA48
analogous
#4A48CA #8B48CA #CA48C8
triadic
#8B48CA #CA8B48 #48CA8B
tetradic
#8B48CA #CA4A48 #87CA48 #48C8CA
square
#8B48CA #CA4A48 #87CA48 #48C8CA
split-complementary
#8B48CA #C8CA48 #48CA4A
monochromatic
#4D2276 #6C30A5 #8B48CA #A977D8 #C7A7E5
Accessibility & contrast
On white
5.42
#8B48CA on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.88
#8B48CA on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8B48CA
5.42:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8B48CA | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8B48CA | 1.00 | 5.42 | 3.88 | 5.42 |
| #FFFFFF | 5.42 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.88 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.42 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0068CE
Deuteranopia (green-blind)
#226AC7
Tritanopia (blue-blind)
#7F6483
Achromatopsia (no color)
#6A6A6A
Design tokens & code
CSS
--color: #8b48ca; /* rgb */ color: rgb(139, 72, 202); /* oklch */ color: oklch(54.7% 0.195 304.4);
Tailwind
colors: {
custom: {
50: '#b17fdb',
500: '#8b48ca',
950: '#000000',
},
}SCSS
$custom: #8b48ca; $custom-light: #b17fdb; $custom-dark: #000000;
JSON
{
"hex": "#8b48ca",
"rgb": {
"r": 139,
"g": 72,
"b": 202
},
"hsl": {
"h": 270.923,
"s": 55.085,
"l": 53.725
},
"oklch": {
"l": 0.54676,
"c": 0.19501,
"h": 304.4
},
"luminance": 0.14388
}Semantic roles & 50–950 ramp
primary
#8B48CA
secondary
#B6D39B
accent
#DE4992
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#110A15
muted
#807C83