#7841BF#7841BF
#7841BF is a mid, vivid violet. Relative luminance 0.115; OKLCH L 50.8% C 0.188 H 299.7°. Best body text is #FFFFFF at 6.35:1 contrast (WCAG AA passes).
Color values
| HEX | #7841BF |
|---|---|
| RGB | rgb(120, 65, 191) |
| HSL | hsl(266, 50%, 50%) |
| HSV | hsv(266, 66%, 75%) |
| CMYK | cmyk(37.2%, 66%, 0%, 25.1%) |
| CIE-LAB | lab(40.47, 49.15, -57.46) |
| CIE-LCH | lch(40.47, 75.61, 310.55°) |
| OKLab | oklab(50.82% 0.0933 -0.1636) |
| OKLCH | oklch(50.82% 0.188 299.7) |
| XYZ | xyz(19.0377, 11.5351, 50.5036) |
| Luminance | 0.1153 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Bluey Purple
#6241C7
ΔE00 4.21
Blueviolet
#8A2BE2
ΔE00 5.67
Bluish Purple
#703BE7
ΔE00 5.68
Royal Purple
#7851A9
ΔE00 5.72
Darkorchid
#9932CC
ΔE00 5.96
Burple
#6832E3
ΔE00 6.06
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7841BF #88BF41
analogous
#4149BF #7841BF #B741BF
triadic
#7841BF #BF7841 #41BF78
tetradic
#7841BF #BF4149 #88BF41 #41BFB7
square
#7841BF #BF4149 #88BF41 #41BFB7
split-complementary
#7841BF #BFB741 #49BF41
monochromatic
#3F2264 #5B3192 #7841BF #996FCE #B99DDE
Accessibility & contrast
On white
6.35
#7841BF on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.31
#7841BF on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7841BF
6.35:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7841BF | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7841BF | 1.00 | 6.35 | 3.31 | 6.35 |
| #FFFFFF | 6.35 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.31 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.35 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005FC3
Deuteranopia (green-blind)
#005EBC
Tritanopia (blue-blind)
#685E7A
Achromatopsia (no color)
#5F5F5F
Design tokens & code
CSS
--color: #7841bf; /* rgb */ color: rgb(120, 65, 191); /* oklch */ color: oklch(50.8% 0.188 299.7);
Tailwind
colors: {
custom: {
50: '#a479d3',
500: '#7841bf',
950: '#000000',
},
}SCSS
$custom: #7841bf; $custom-light: #a479d3; $custom-dark: #000000;
JSON
{
"hex": "#7841bf",
"rgb": {
"r": 120,
"g": 65,
"b": 191
},
"hsl": {
"h": 266.19,
"s": 49.606,
"l": 50.196
},
"oklch": {
"l": 0.50823,
"c": 0.18835,
"h": 299.7
},
"luminance": 0.11535
}Semantic roles & 50–950 ramp
primary
#7841BF
secondary
#B1CA92
accent
#D94F9D
background
#FAF7FD
surface
#F4EEFA
border
#CEC9D3
text
#100914
muted
#7F7B83