#8A48C8#8A48C8
#8A48C8 is a mid, vivid violet. Relative luminance 0.142; OKLCH L 54.4% C 0.193 H 304.4°. Best body text is #FFFFFF at 5.47:1 contrast (WCAG AA passes).
Color values
| HEX | #8A48C8 |
|---|---|
| RGB | rgb(138, 72, 200) |
| HSL | hsl(271, 54%, 53%) |
| HSV | hsv(271, 64%, 78%) |
| CMYK | cmyk(31%, 64%, 0%, 21.6%) |
| CIE-LAB | lab(44.53, 51.67, -56.02) |
| CIE-LCH | lch(44.53, 76.21, 312.69°) |
| OKLab | oklab(54.42% 0.1089 -0.1588) |
| OKLCH | oklch(54.42% 0.193 304.4) |
| XYZ | xyz(23.2216, 14.2082, 56.1515) |
| Luminance | 0.1421 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Darkorchid
#9932CC
ΔE00 4.15
Purply
#983FB2
ΔE00 5.37
Blueviolet
#8A2BE2
ΔE00 5.61
Purpley
#8756E4
ΔE00 5.76
Royal Purple
#7851A9
ΔE00 6.03
Deep Lavender
#8D5EB7
ΔE00 6.71
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A48C8 #86C848
analogous
#4A48C8 #8A48C8 #C848C6
triadic
#8A48C8 #C88A48 #48C88A
tetradic
#8A48C8 #C84A48 #86C848 #48C6C8
square
#8A48C8 #C84A48 #86C848 #48C6C8
split-complementary
#8A48C8 #C6C848 #48C84A
monochromatic
#4C2373 #6B31A2 #8A48C8 #A877D6 #C6A6E4
Accessibility & contrast
On white
5.47
#8A48C8 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.84
#8A48C8 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8A48C8
5.47:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A48C8 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8A48C8 | 1.00 | 5.47 | 3.84 | 5.47 |
| #FFFFFF | 5.47 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.84 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.47 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0068CC
Deuteranopia (green-blind)
#2469C5
Tritanopia (blue-blind)
#7F6382
Achromatopsia (no color)
#696969
Design tokens & code
CSS
--color: #8a48c8; /* rgb */ color: rgb(138, 72, 200); /* oklch */ color: oklch(54.4% 0.193 304.4);
Tailwind
colors: {
custom: {
50: '#b07fd9',
500: '#8a48c8',
950: '#000000',
},
}SCSS
$custom: #8a48c8; $custom-light: #b07fd9; $custom-dark: #000000;
JSON
{
"hex": "#8a48c8",
"rgb": {
"r": 138,
"g": 72,
"b": 200
},
"hsl": {
"h": 270.938,
"s": 53.782,
"l": 53.333
},
"oklch": {
"l": 0.54424,
"c": 0.19257,
"h": 304.4
},
"luminance": 0.14208
}Semantic roles & 50–950 ramp
primary
#8A48C8
secondary
#B5D19A
accent
#DD4B92
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#110A15
muted
#807C83