#7E41B8#7E41B8
#7E41B8 is a mid, vivid violet. Relative luminance 0.117; OKLCH L 51.0% C 0.182 H 304.2°. Best body text is #FFFFFF at 6.30:1 contrast (WCAG AA passes).
Color values
| HEX | #7E41B8 |
|---|---|
| RGB | rgb(126, 65, 184) |
| HSL | hsl(271, 48%, 49%) |
| HSV | hsv(271, 65%, 72%) |
| CMYK | cmyk(31.5%, 64.7%, 0%, 27.8%) |
| CIE-LAB | lab(40.70, 48.70, -52.95) |
| CIE-LCH | lch(40.70, 71.94, 312.61°) |
| OKLab | oklab(50.99% 0.1022 -0.1501) |
| OKLCH | oklch(50.99% 0.182 304.2) |
| XYZ | xyz(19.1443, 11.6770, 46.5834) |
| Luminance | 0.1168 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal Purple
#7851A9
ΔE00 4.99
Darkorchid
#9932CC
ΔE00 5.26
Purply
#983FB2
ΔE00 5.60
Bluey Purple
#6241C7
ΔE00 5.90
Blueviolet
#8A2BE2
ΔE00 6.29
Rebeccapurple
#663399
ΔE00 6.87
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7E41B8 #7BB841
analogous
#4341B8 #7E41B8 #B841B7
triadic
#7E41B8 #B87E41 #41B87E
tetradic
#7E41B8 #B84341 #7BB841 #41B7B8
square
#7E41B8 #B84341 #7BB841 #41B7B8
split-complementary
#7E41B8 #B7B841 #41B843
monochromatic
#40215E #5F318B #7E41B8 #9C6BCB #BB99DB
Accessibility & contrast
On white
6.30
#7E41B8 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.34
#7E41B8 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7E41B8
6.30:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7E41B8 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7E41B8 | 1.00 | 6.30 | 3.34 | 6.30 |
| #FFFFFF | 6.30 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.34 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.30 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005EBC
Deuteranopia (green-blind)
#1E60B5
Tritanopia (blue-blind)
#735B77
Achromatopsia (no color)
#606060
Design tokens & code
CSS
--color: #7e41b8; /* rgb */ color: rgb(126, 65, 184); /* oklch */ color: oklch(51.0% 0.182 304.2);
Tailwind
colors: {
custom: {
50: '#a879ce',
500: '#7e41b8',
950: '#000000',
},
}SCSS
$custom: #7e41b8; $custom-light: #a879ce; $custom-dark: #000000;
JSON
{
"hex": "#7e41b8",
"rgb": {
"r": 126,
"g": 65,
"b": 184
},
"hsl": {
"h": 270.756,
"s": 47.791,
"l": 48.824
},
"oklch": {
"l": 0.50994,
"c": 0.18161,
"h": 304.2
},
"luminance": 0.11677
}Semantic roles & 50–950 ramp
primary
#7E41B8
secondary
#AAC78E
accent
#D75092
background
#FAF7FC
surface
#F4EEF9
border
#CEC9D2
text
#100914
muted
#7F7B82