#7841B5#7841B5
#7841B5 is a mid, vivid violet. Relative luminance 0.111; OKLCH L 50.1% C 0.177 H 302.2°. Best body text is #FFFFFF at 6.52:1 contrast (WCAG AA passes).
Color values
| HEX | #7841B5 |
|---|---|
| RGB | rgb(120, 65, 181) |
| HSL | hsl(268, 47%, 48%) |
| HSV | hsv(268, 64%, 71%) |
| CMYK | cmyk(33.7%, 64.1%, 0%, 29%) |
| CIE-LAB | lab(39.76, 46.63, -52.72) |
| CIE-LCH | lch(39.76, 70.39, 311.49°) |
| OKLab | oklab(50.09% 0.0943 -0.1497) |
| OKLCH | oklch(50.09% 0.177 302.2) |
| XYZ | xyz(17.9746, 11.1098, 44.9046) |
| Luminance | 0.1111 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal Purple
#7851A9
ΔE00 4.87
Bluey Purple
#6241C7
ΔE00 5.18
Rebeccapurple
#663399
ΔE00 6.02
Darkorchid
#9932CC
ΔE00 6.32
Purply
#983FB2
ΔE00 6.61
Blueviolet
#8A2BE2
ΔE00 6.86
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7841B5 #7EB541
analogous
#4144B5 #7841B5 #B241B5
triadic
#7841B5 #B57841 #41B578
tetradic
#7841B5 #B54144 #7EB541 #41B5B2
square
#7841B5 #B54144 #7EB541 #41B5B2
split-complementary
#7841B5 #B5B241 #44B541
monochromatic
#3C215B #5A3188 #7841B5 #976AC9 #B697DA
Accessibility & contrast
On white
6.52
#7841B5 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.22
#7841B5 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7841B5
6.52:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7841B5 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7841B5 | 1.00 | 6.52 | 3.22 | 6.52 |
| #FFFFFF | 6.52 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.22 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.52 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005DB9
Deuteranopia (green-blind)
#185DB2
Tritanopia (blue-blind)
#6C5A75
Achromatopsia (no color)
#5E5E5E
Design tokens & code
CSS
--color: #7841b5; /* rgb */ color: rgb(120, 65, 181); /* oklch */ color: oklch(50.1% 0.177 302.2);
Tailwind
colors: {
custom: {
50: '#a379cc',
500: '#7841b5',
950: '#000000',
},
}SCSS
$custom: #7841b5; $custom-light: #a379cc; $custom-dark: #000000;
JSON
{
"hex": "#7841b5",
"rgb": {
"r": 120,
"g": 65,
"b": 181
},
"hsl": {
"h": 268.448,
"s": 47.154,
"l": 48.235
},
"oklch": {
"l": 0.50093,
"c": 0.1769,
"h": 302.2
},
"luminance": 0.1111
}Semantic roles & 50–950 ramp
primary
#7841B5
secondary
#AAC58C
accent
#D75197
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100913
muted
#7F7B82