#8A48C7#8A48C7
#8A48C7 is a mid, vivid violet. Relative luminance 0.142; OKLCH L 54.4% C 0.191 H 304.7°. Best body text is #FFFFFF at 5.48:1 contrast (WCAG AA passes).
Color values
| HEX | #8A48C7 |
|---|---|
| RGB | rgb(138, 72, 199) |
| HSL | hsl(271, 53%, 53%) |
| HSV | hsv(271, 64%, 78%) |
| CMYK | cmyk(30.7%, 63.8%, 0%, 22%) |
| CIE-LAB | lab(44.46, 51.43, -55.55) |
| CIE-LCH | lch(44.46, 75.70, 312.80°) |
| OKLab | oklab(54.36% 0.109 -0.1574) |
| OKLCH | oklch(54.36% 0.191 304.7) |
| XYZ | xyz(23.1051, 14.1616, 55.5380) |
| Luminance | 0.1416 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Darkorchid
#9932CC
ΔE00 4.14
Purply
#983FB2
ΔE00 5.25
Blueviolet
#8A2BE2
ΔE00 5.70
Purpley
#8756E4
ΔE00 5.89
Royal Purple
#7851A9
ΔE00 5.92
Deep Lavender
#8D5EB7
ΔE00 6.65
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A48C7 #85C748
analogous
#4A48C7 #8A48C7 #C748C4
triadic
#8A48C7 #C78A48 #48C78A
tetradic
#8A48C7 #C74A48 #85C748 #48C4C7
square
#8A48C7 #C74A48 #85C748 #48C4C7
split-complementary
#8A48C7 #C4C748 #48C74A
monochromatic
#4C2372 #6B31A1 #8A48C7 #A877D5 #C6A6E4
Accessibility & contrast
On white
5.48
#8A48C7 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.83
#8A48C7 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8A48C7
5.48:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A48C7 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8A48C7 | 1.00 | 5.48 | 3.83 | 5.48 |
| #FFFFFF | 5.48 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.83 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.48 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0067CB
Deuteranopia (green-blind)
#2569C4
Tritanopia (blue-blind)
#7F6381
Achromatopsia (no color)
#696969
Design tokens & code
CSS
--color: #8a48c7; /* rgb */ color: rgb(138, 72, 199); /* oklch */ color: oklch(54.4% 0.191 304.7);
Tailwind
colors: {
custom: {
50: '#b07fd9',
500: '#8a48c7',
950: '#000000',
},
}SCSS
$custom: #8a48c7; $custom-light: #b07fd9; $custom-dark: #000000;
JSON
{
"hex": "#8a48c7",
"rgb": {
"r": 138,
"g": 72,
"b": 199
},
"hsl": {
"h": 271.181,
"s": 53.138,
"l": 53.137
},
"oklch": {
"l": 0.54355,
"c": 0.19148,
"h": 304.7
},
"luminance": 0.14162
}Semantic roles & 50–950 ramp
primary
#8A48C7
secondary
#B4D19A
accent
#DD4B91
background
#FBF7FD
surface
#F6EEFA
border
#D0C9D3
text
#110A15
muted
#807C83