#7841BB#7841BB
#7841BB is a mid, vivid violet. Relative luminance 0.114; OKLCH L 50.5% C 0.184 H 300.7°. Best body text is #FFFFFF at 6.42:1 contrast (WCAG AA passes).
Color values
| HEX | #7841BB |
|---|---|
| RGB | rgb(120, 65, 187) |
| HSL | hsl(267, 48%, 49%) |
| HSV | hsv(267, 65%, 73%) |
| CMYK | cmyk(35.8%, 65.2%, 0%, 26.7%) |
| CIE-LAB | lab(40.18, 48.14, -55.58) |
| CIE-LCH | lch(40.18, 73.53, 310.90°) |
| OKLab | oklab(50.53% 0.0937 -0.1581) |
| OKLCH | oklch(50.53% 0.184 300.7) |
| XYZ | xyz(18.6035, 11.3614, 48.2169) |
| Luminance | 0.1136 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Bluey Purple
#6241C7
ΔE00 4.54
Royal Purple
#7851A9
ΔE00 5.35
Darkorchid
#9932CC
ΔE00 6.06
Blueviolet
#8A2BE2
ΔE00 6.12
Bluish Purple
#703BE7
ΔE00 6.29
Burple
#6832E3
ΔE00 6.58
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7841BB #84BB41
analogous
#4147BB #7841BB #B541BB
triadic
#7841BB #BB7841 #41BB78
tetradic
#7841BB #BB4147 #84BB41 #41BBB5
square
#7841BB #BB4147 #84BB41 #41BBB5
split-complementary
#7841BB #BBB541 #47BB41
monochromatic
#3E2160 #5B318E #7841BB #986DCC #B89ADC
Accessibility & contrast
On white
6.42
#7841BB on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.27
#7841BB on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7841BB
6.42:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7841BB | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7841BB | 1.00 | 6.42 | 3.27 | 6.42 |
| #FFFFFF | 6.42 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.27 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.42 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005EBF
Deuteranopia (green-blind)
#045EB8
Tritanopia (blue-blind)
#6A5C78
Achromatopsia (no color)
#5F5F5F
Design tokens & code
CSS
--color: #7841bb; /* rgb */ color: rgb(120, 65, 187); /* oklch */ color: oklch(50.5% 0.184 300.7);
Tailwind
colors: {
custom: {
50: '#a479d0',
500: '#7841bb',
950: '#000000',
},
}SCSS
$custom: #7841bb; $custom-light: #a479d0; $custom-dark: #000000;
JSON
{
"hex": "#7841bb",
"rgb": {
"r": 120,
"g": 65,
"b": 187
},
"hsl": {
"h": 267.049,
"s": 48.413,
"l": 49.412
},
"oklch": {
"l": 0.50528,
"c": 0.18378,
"h": 300.7
},
"luminance": 0.11362
}Semantic roles & 50–950 ramp
primary
#7841BB
secondary
#AFC890
accent
#D8509B
background
#FAF7FC
surface
#F4EEF9
border
#CEC9D2
text
#100914
muted
#7F7B82