#7841B2#7841B2
#7841B2 is a mid, vivid violet. Relative luminance 0.110; OKLCH L 49.9% C 0.173 H 303.0°. Best body text is #FFFFFF at 6.57:1 contrast (WCAG AA passes).
Color values
| HEX | #7841B2 |
|---|---|
| RGB | rgb(120, 65, 178) |
| HSL | hsl(269, 47%, 48%) |
| HSV | hsv(269, 63%, 70%) |
| CMYK | cmyk(32.6%, 63.5%, 0%, 30.2%) |
| CIE-LAB | lab(39.56, 45.88, -51.28) |
| CIE-LCH | lch(39.56, 68.81, 311.82°) |
| OKLab | oklab(49.88% 0.0945 -0.1454) |
| OKLCH | oklch(49.88% 0.173 303) |
| XYZ | xyz(17.6701, 10.9880, 43.3008) |
| Luminance | 0.1099 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal Purple
#7851A9
ΔE00 4.67
Bluey Purple
#6241C7
ΔE00 5.55
Rebeccapurple
#663399
ΔE00 5.73
Purply
#983FB2
ΔE00 6.47
Darkorchid
#9932CC
ΔE00 6.50
Blueviolet
#8A2BE2
ΔE00 7.25
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7841B2 #7BB241
analogous
#4142B2 #7841B2 #B141B2
triadic
#7841B2 #B27841 #41B278
tetradic
#7841B2 #B24142 #7BB241 #41B2B1
square
#7841B2 #B24142 #7BB241 #41B2B1
split-complementary
#7841B2 #B2B141 #42B241
monochromatic
#3C2058 #5A3185 #7841B2 #9768C8 #B695D8
Accessibility & contrast
On white
6.57
#7841B2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.20
#7841B2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7841B2
6.57:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7841B2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7841B2 | 1.00 | 6.57 | 3.20 | 6.57 |
| #FFFFFF | 6.57 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.20 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.57 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005CB6
Deuteranopia (green-blind)
#1E5DAF
Tritanopia (blue-blind)
#6D5973
Achromatopsia (no color)
#5D5D5D
Design tokens & code
CSS
--color: #7841b2; /* rgb */ color: rgb(120, 65, 178); /* oklch */ color: oklch(49.9% 0.173 303.0);
Tailwind
colors: {
custom: {
50: '#a379ca',
500: '#7841b2',
950: '#000000',
},
}SCSS
$custom: #7841b2; $custom-light: #a379ca; $custom-dark: #000000;
JSON
{
"hex": "#7841b2",
"rgb": {
"r": 120,
"g": 65,
"b": 178
},
"hsl": {
"h": 269.204,
"s": 46.502,
"l": 47.647
},
"oklch": {
"l": 0.4988,
"c": 0.17344,
"h": 303
},
"luminance": 0.10988
}Semantic roles & 50–950 ramp
primary
#7841B2
secondary
#A8C48B
accent
#D65296
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#0F0913
muted
#7F7B82