#7841B7#7841B7
#7841B7 is a mid, vivid violet. Relative luminance 0.112; OKLCH L 50.2% C 0.179 H 301.7°. Best body text is #FFFFFF at 6.48:1 contrast (WCAG AA passes).
Color values
| HEX | #7841B7 |
|---|---|
| RGB | rgb(120, 65, 183) |
| HSL | hsl(268, 48%, 49%) |
| HSV | hsv(268, 64%, 72%) |
| CMYK | cmyk(34.4%, 64.5%, 0%, 28.2%) |
| CIE-LAB | lab(39.90, 47.13, -53.68) |
| CIE-LCH | lch(39.90, 71.43, 311.28°) |
| OKLab | oklab(50.24% 0.0941 -0.1525) |
| OKLCH | oklch(50.24% 0.179 301.7) |
| XYZ | xyz(18.1812, 11.1925, 45.9931) |
| Luminance | 0.1119 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Bluey Purple
#6241C7
ΔE00 4.95
Royal Purple
#7851A9
ΔE00 5.02
Darkorchid
#9932CC
ΔE00 6.22
Rebeccapurple
#663399
ΔE00 6.23
Blueviolet
#8A2BE2
ΔE00 6.60
Purply
#983FB2
ΔE00 6.71
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7841B7 #80B741
analogous
#4145B7 #7841B7 #B341B7
triadic
#7841B7 #B77841 #41B778
tetradic
#7841B7 #B74145 #80B741 #41B7B3
square
#7841B7 #B74145 #80B741 #41B7B3
split-complementary
#7841B7 #B7B341 #45B741
monochromatic
#3D215D #5A318A #7841B7 #976BCA #B798DA
Accessibility & contrast
On white
6.48
#7841B7 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.24
#7841B7 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7841B7
6.48:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7841B7 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7841B7 | 1.00 | 6.48 | 3.24 | 6.48 |
| #FFFFFF | 6.48 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.24 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.48 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005DBB
Deuteranopia (green-blind)
#135DB4
Tritanopia (blue-blind)
#6B5B76
Achromatopsia (no color)
#5E5E5E
Design tokens & code
CSS
--color: #7841b7; /* rgb */ color: rgb(120, 65, 183); /* oklch */ color: oklch(50.2% 0.179 301.7);
Tailwind
colors: {
custom: {
50: '#a379cd',
500: '#7841b7',
950: '#000000',
},
}SCSS
$custom: #7841b7; $custom-light: #a379cd; $custom-dark: #000000;
JSON
{
"hex": "#7841b7",
"rgb": {
"r": 120,
"g": 65,
"b": 183
},
"hsl": {
"h": 267.966,
"s": 47.581,
"l": 48.627
},
"oklch": {
"l": 0.50237,
"c": 0.1792,
"h": 301.7
},
"luminance": 0.11193
}Semantic roles & 50–950 ramp
primary
#7841B7
secondary
#ACC68E
accent
#D75198
background
#FAF7FC
surface
#F4EEF9
border
#CEC9D2
text
#100914
muted
#7F7B82