#8147C2#8147C2
#8147C2 is a mid, vivid violet. Relative luminance 0.131; OKLCH L 52.9% C 0.185 H 302.1°. Best body text is #FFFFFF at 5.81:1 contrast (WCAG AA passes).
Color values
| HEX | #8147C2 |
|---|---|
| RGB | rgb(129, 71, 194) |
| HSL | hsl(268, 50%, 52%) |
| HSV | hsv(268, 63%, 76%) |
| CMYK | cmyk(33.5%, 63.4%, 0%, 23.9%) |
| CIE-LAB | lab(42.87, 48.74, -55.28) |
| CIE-LCH | lch(42.87, 73.70, 311.40°) |
| OKLab | oklab(52.86% 0.0985 -0.1569) |
| OKLCH | oklch(52.86% 0.185 302.1) |
| XYZ | xyz(21.0418, 13.0686, 52.4424) |
| Luminance | 0.1307 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal Purple
#7851A9
ΔE00 5.05
Darkorchid
#9932CC
ΔE00 5.05
Blueviolet
#8A2BE2
ΔE00 5.80
Bluey Purple
#6241C7
ΔE00 5.96
Purply
#983FB2
ΔE00 5.98
Bluish Purple
#703BE7
ΔE00 6.37
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8147C2 #88C247
analogous
#474BC2 #8147C2 #BF47C2
triadic
#8147C2 #C28147 #47C281
tetradic
#8147C2 #C2474B #88C247 #47C2BF
square
#8147C2 #C2474B #88C247 #47C2BF
split-complementary
#8147C2 #C2BF47 #4BC247
monochromatic
#45246B #633399 #8147C2 #A075D1 #C0A3E0
Accessibility & contrast
On white
5.81
#8147C2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.61
#8147C2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8147C2
5.81:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8147C2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8147C2 | 1.00 | 5.81 | 3.61 | 5.81 |
| #FFFFFF | 5.81 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.61 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.81 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0064C6
Deuteranopia (green-blind)
#1C65BF
Tritanopia (blue-blind)
#74627E
Achromatopsia (no color)
#656565
Design tokens & code
CSS
--color: #8147c2; /* rgb */ color: rgb(129, 71, 194); /* oklch */ color: oklch(52.9% 0.185 302.1);
Tailwind
colors: {
custom: {
50: '#aa7dd5',
500: '#8147c2',
950: '#000000',
},
}SCSS
$custom: #8147c2; $custom-light: #aa7dd5; $custom-dark: #000000;
JSON
{
"hex": "#8147c2",
"rgb": {
"r": 129,
"g": 71,
"b": 194
},
"hsl": {
"h": 268.293,
"s": 50.204,
"l": 51.961
},
"oklch": {
"l": 0.52856,
"c": 0.18527,
"h": 302.1
},
"luminance": 0.13069
}Semantic roles & 50–950 ramp
primary
#8147C2
secondary
#B4CD97
accent
#DA4E98
background
#FAF7FD
surface
#F4EEFA
border
#CEC9D3
text
#100A14
muted
#7F7C83