#7841C5#7841C5
#7841C5 is a mid, vivid violet. Relative luminance 0.118; OKLCH L 51.3% C 0.195 H 298.3°. Best body text is #FFFFFF at 6.25:1 contrast (WCAG AA passes).
Color values
| HEX | #7841C5 |
|---|---|
| RGB | rgb(120, 65, 197) |
| HSL | hsl(265, 53%, 51%) |
| HSV | hsv(265, 67%, 77%) |
| CMYK | cmyk(39.1%, 67%, 0%, 22.7%) |
| CIE-LAB | lab(40.90, 50.68, -60.25) |
| CIE-LCH | lch(40.90, 78.73, 310.07°) |
| OKLab | oklab(51.27% 0.0926 -0.1718) |
| OKLCH | oklch(51.27% 0.195 298.3) |
| XYZ | xyz(19.7115, 11.8046, 54.0525) |
| Luminance | 0.1181 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Bluey Purple
#6241C7
ΔE00 3.87
Bluish Purple
#703BE7
ΔE00 4.81
Blueviolet
#8A2BE2
ΔE00 5.07
Burple
#6832E3
ΔE00 5.36
Darkorchid
#9932CC
ΔE00 5.90
Blurple
#5539CC
ΔE00 6.08
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7841C5 #8EC541
analogous
#414CC5 #7841C5 #BA41C5
triadic
#7841C5 #C57841 #41C578
tetradic
#7841C5 #C5414C #8EC541 #41C5BA
square
#7841C5 #C5414C #8EC541 #41C5BA
split-complementary
#7841C5 #C5BA41 #4CC541
monochromatic
#40216B #5B2F9A #7841C5 #9970D3 #BB9FE2
Accessibility & contrast
On white
6.25
#7841C5 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.36
#7841C5 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7841C5
6.25:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7841C5 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7841C5 | 1.00 | 6.25 | 3.36 | 6.25 |
| #FFFFFF | 6.25 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.36 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.25 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0061C9
Deuteranopia (green-blind)
#005FC2
Tritanopia (blue-blind)
#66607E
Achromatopsia (no color)
#606060
Design tokens & code
CSS
--color: #7841c5; /* rgb */ color: rgb(120, 65, 197); /* oklch */ color: oklch(51.3% 0.195 298.3);
Tailwind
colors: {
custom: {
50: '#a579d7',
500: '#7841c5',
950: '#000000',
},
}SCSS
$custom: #7841c5; $custom-light: #a579d7; $custom-dark: #000000;
JSON
{
"hex": "#7841c5",
"rgb": {
"r": 120,
"g": 65,
"b": 197
},
"hsl": {
"h": 265,
"s": 53.226,
"l": 51.373
},
"oklch": {
"l": 0.51274,
"c": 0.19518,
"h": 298.3
},
"luminance": 0.11805
}Semantic roles & 50–950 ramp
primary
#7841C5
secondary
#B6CE94
accent
#DD4BA0
background
#FAF7FD
surface
#F4EEFA
border
#CEC9D3
text
#100914
muted
#7F7B83