#8A48B6#8A48B6
#8A48B6 is a mid, vivid violet. Relative luminance 0.134; OKLCH L 53.2% C 0.173 H 309.4°. Best body text is #FFFFFF at 5.70:1 contrast (WCAG AA passes).
Color values
| HEX | #8A48B6 |
|---|---|
| RGB | rgb(138, 72, 182) |
| HSL | hsl(276, 43%, 50%) |
| HSV | hsv(276, 60%, 71%) |
| CMYK | cmyk(24.2%, 60.4%, 0%, 28.6%) |
| CIE-LAB | lab(43.38, 47.46, -47.38) |
| CIE-LCH | lch(43.38, 67.06, 315.05°) |
| OKLab | oklab(53.23% 0.1096 -0.1334) |
| OKLCH | oklch(53.23% 0.173 309.4) |
| XYZ | xyz(21.2404, 13.4158, 45.7175) |
| Luminance | 0.1341 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purply
#983FB2
ΔE00 3.37
Royal Purple
#7851A9
ΔE00 4.54
Darkorchid
#9932CC
ΔE00 4.92
Deep Lavender
#8D5EB7
ΔE00 6.04
Medium Purple
#9E43A2
ΔE00 6.47
Amethyst
#9B5FC0
ΔE00 7.39
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A48B6 #74B648
analogous
#5348B6 #8A48B6 #B648AB
triadic
#8A48B6 #B68A48 #48B68A
tetradic
#8A48B6 #B65348 #74B648 #48ABB6
square
#8A48B6 #B65348 #74B648 #48ABB6
split-complementary
#8A48B6 #ABB648 #48B653
monochromatic
#47255E #69378A #8A48B6 #A673C8 #C29FD9
Accessibility & contrast
On white
5.70
#8A48B6 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.68
#8A48B6 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8A48B6
5.70:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A48B6 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8A48B6 | 1.00 | 5.70 | 3.68 | 5.70 |
| #FFFFFF | 5.70 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.68 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.70 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#1B64B9
Deuteranopia (green-blind)
#3A67B3
Tritanopia (blue-blind)
#845D78
Achromatopsia (no color)
#666666
Design tokens & code
CSS
--color: #8a48b6; /* rgb */ color: rgb(138, 72, 182); /* oklch */ color: oklch(53.2% 0.173 309.4);
Tailwind
colors: {
custom: {
50: '#af7ecc',
500: '#8a48b6',
950: '#000000',
},
}SCSS
$custom: #8a48b6; $custom-light: #af7ecc; $custom-dark: #000000;
JSON
{
"hex": "#8a48b6",
"rgb": {
"r": 138,
"g": 72,
"b": 182
},
"hsl": {
"h": 276,
"s": 43.307,
"l": 49.804
},
"oklch": {
"l": 0.53226,
"c": 0.17271,
"h": 309.4
},
"luminance": 0.13415
}Semantic roles & 50–950 ramp
primary
#8A48B6
secondary
#A8C694
accent
#D35587
background
#FBF7FC
surface
#F6EEF9
border
#D0C9D2
text
#110A13
muted
#807C82