#8A48C2#8A48C2
#8A48C2 is a mid, vivid violet. Relative luminance 0.139; OKLCH L 54.0% C 0.186 H 306.0°. Best body text is #FFFFFF at 5.55:1 contrast (WCAG AA passes).
Color values
| HEX | #8A48C2 |
|---|---|
| RGB | rgb(138, 72, 194) |
| HSL | hsl(272, 50%, 52%) |
| HSV | hsv(272, 63%, 76%) |
| CMYK | cmyk(28.9%, 62.9%, 0%, 23.9%) |
| CIE-LAB | lab(44.14, 50.25, -53.18) |
| CIE-LCH | lch(44.14, 73.16, 313.38°) |
| OKLab | oklab(54.01% 0.1093 -0.1504) |
| OKLCH | oklch(54.01% 0.186 306) |
| XYZ | xyz(22.5341, 13.9332, 52.5307) |
| Luminance | 0.1393 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Darkorchid
#9932CC
ΔE00 4.19
Purply
#983FB2
ΔE00 4.63
Royal Purple
#7851A9
ΔE00 5.41
Blueviolet
#8A2BE2
ΔE00 6.19
Deep Lavender
#8D5EB7
ΔE00 6.37
Purpley
#8756E4
ΔE00 6.57
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A48C2 #80C248
analogous
#4D48C2 #8A48C2 #C248BD
triadic
#8A48C2 #C28A48 #48C28A
tetradic
#8A48C2 #C24D48 #80C248 #48BDC2
square
#8A48C2 #C24D48 #80C248 #48BDC2
split-complementary
#8A48C2 #BDC248 #48C24D
monochromatic
#4B246C #6B339A #8A48C2 #A776D1 #C5A4E1
Accessibility & contrast
On white
5.55
#8A48C2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.79
#8A48C2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8A48C2
5.55:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A48C2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8A48C2 | 1.00 | 5.55 | 3.79 | 5.55 |
| #FFFFFF | 5.55 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.79 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.55 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0066C6
Deuteranopia (green-blind)
#2D69BF
Tritanopia (blue-blind)
#80617E
Achromatopsia (no color)
#686868
Design tokens & code
CSS
--color: #8a48c2; /* rgb */ color: rgb(138, 72, 194); /* oklch */ color: oklch(54.0% 0.186 306.0);
Tailwind
colors: {
custom: {
50: '#b07fd5',
500: '#8a48c2',
950: '#000000',
},
}SCSS
$custom: #8a48c2; $custom-light: #b07fd5; $custom-dark: #000000;
JSON
{
"hex": "#8a48c2",
"rgb": {
"r": 138,
"g": 72,
"b": 194
},
"hsl": {
"h": 272.459,
"s": 50,
"l": 52.157
},
"oklch": {
"l": 0.54014,
"c": 0.18596,
"h": 306
},
"luminance": 0.13933
}Semantic roles & 50–950 ramp
primary
#8A48C2
secondary
#B1CE98
accent
#DA4E8E
background
#FBF7FD
surface
#F6EEFA
border
#D0C9D3
text
#110A14
muted
#807C83