#7F41C2#7F41C2
#7F41C2 is a mid, vivid violet. Relative luminance 0.122; OKLCH L 51.8% C 0.193 H 302.1°. Best body text is #FFFFFF at 6.11:1 contrast (WCAG AA passes).
Color values
| HEX | #7F41C2 |
|---|---|
| RGB | rgb(127, 65, 194) |
| HSL | hsl(269, 51%, 51%) |
| HSV | hsv(269, 66%, 76%) |
| CMYK | cmyk(34.5%, 66.5%, 0%, 23.9%) |
| CIE-LAB | lab(41.51, 51.36, -57.48) |
| CIE-LCH | lch(41.51, 77.08, 311.78°) |
| OKLab | oklab(51.83% 0.1026 -0.1634) |
| OKLCH | oklch(51.83% 0.193 302.1) |
| XYZ | xyz(20.3780, 12.1876, 52.3073) |
| Luminance | 0.1219 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Darkorchid
#9932CC
ΔE00 4.76
Blueviolet
#8A2BE2
ΔE00 5.03
Bluey Purple
#6241C7
ΔE00 5.30
Bluish Purple
#703BE7
ΔE00 5.82
Royal Purple
#7851A9
ΔE00 5.84
Purply
#983FB2
ΔE00 6.21
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7F41C2 #84C241
analogous
#4143C2 #7F41C2 #BF41C2
triadic
#7F41C2 #C27F41 #41C27F
tetradic
#7F41C2 #C24143 #84C241 #41C2BF
square
#7F41C2 #C24143 #84C241 #41C2BF
split-complementary
#7F41C2 #C2BF41 #43C241
monochromatic
#432167 #613096 #7F41C2 #9E6FD1 #BD9EE0
Accessibility & contrast
On white
6.11
#7F41C2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.44
#7F41C2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7F41C2
6.11:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7F41C2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7F41C2 | 1.00 | 6.11 | 3.44 | 6.11 |
| #FFFFFF | 6.11 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.44 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.11 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0061C6
Deuteranopia (green-blind)
#0261BF
Tritanopia (blue-blind)
#715E7C
Achromatopsia (no color)
#626262
Design tokens & code
CSS
--color: #7f41c2; /* rgb */ color: rgb(127, 65, 194); /* oklch */ color: oklch(51.8% 0.193 302.1);
Tailwind
colors: {
custom: {
50: '#a97ad5',
500: '#7f41c2',
950: '#000000',
},
}SCSS
$custom: #7f41c2; $custom-light: #a97ad5; $custom-dark: #000000;
JSON
{
"hex": "#7f41c2",
"rgb": {
"r": 127,
"g": 65,
"b": 194
},
"hsl": {
"h": 268.837,
"s": 51.394,
"l": 50.784
},
"oklch": {
"l": 0.51827,
"c": 0.19295,
"h": 302.1
},
"luminance": 0.12188
}Semantic roles & 50–950 ramp
primary
#7F41C2
secondary
#B1CC93
accent
#DB4D97
background
#FAF7FD
surface
#F4EEFA
border
#CEC9D3
text
#100914
muted
#7F7B83