#7840B7#7840B7
#7840B7 is a mid, vivid violet. Relative luminance 0.111; OKLCH L 50.1% C 0.181 H 301.8°. Best body text is #FFFFFF at 6.53:1 contrast (WCAG AA passes).
Color values
| HEX | #7840B7 |
|---|---|
| RGB | rgb(120, 64, 183) |
| HSL | hsl(268, 48%, 48%) |
| HSV | hsv(268, 65%, 72%) |
| CMYK | cmyk(34.4%, 65%, 0%, 28.2%) |
| CIE-LAB | lab(39.71, 47.65, -53.99) |
| CIE-LCH | lch(39.71, 72.01, 311.43°) |
| OKLab | oklab(50.1% 0.0953 -0.1534) |
| OKLCH | oklch(50.1% 0.181 301.8) |
| XYZ | xyz(18.1243, 11.0787, 45.9741) |
| Luminance | 0.1108 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Bluey Purple
#6241C7
ΔE00 4.95
Royal Purple
#7851A9
ΔE00 5.22
Rebeccapurple
#663399
ΔE00 6.10
Darkorchid
#9932CC
ΔE00 6.18
Blueviolet
#8A2BE2
ΔE00 6.52
Purply
#983FB2
ΔE00 6.73
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7840B7 #7FB740
analogous
#4044B7 #7840B7 #B340B7
triadic
#7840B7 #B77840 #40B778
tetradic
#7840B7 #B74044 #7FB740 #40B7B3
square
#7840B7 #B74044 #7FB740 #40B7B3
split-complementary
#7840B7 #B7B340 #44B740
monochromatic
#3D205C #5A308A #7840B7 #9769CB #B797DB
Accessibility & contrast
On white
6.53
#7840B7 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.22
#7840B7 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7840B7
6.53:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7840B7 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7840B7 | 1.00 | 6.53 | 3.22 | 6.53 |
| #FFFFFF | 6.53 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.22 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.53 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005DBB
Deuteranopia (green-blind)
#105DB4
Tritanopia (blue-blind)
#6B5A76
Achromatopsia (no color)
#5E5E5E
Design tokens & code
CSS
--color: #7840b7; /* rgb */ color: rgb(120, 64, 183); /* oklch */ color: oklch(50.1% 0.181 301.8);
Tailwind
colors: {
custom: {
50: '#a478cd',
500: '#7840b7',
950: '#000000',
},
}SCSS
$custom: #7840b7; $custom-light: #a478cd; $custom-dark: #000000;
JSON
{
"hex": "#7840b7",
"rgb": {
"r": 120,
"g": 64,
"b": 183
},
"hsl": {
"h": 268.235,
"s": 48.178,
"l": 48.431
},
"oklch": {
"l": 0.501,
"c": 0.18057,
"h": 301.8
},
"luminance": 0.11079
}Semantic roles & 50–950 ramp
primary
#7840B7
secondary
#ABC68D
accent
#D85098
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100914
muted
#7F7B82