#7A40BA#7A40BA
#7A40BA is a mid, vivid violet. Relative luminance 0.114; OKLCH L 50.5% C 0.184 H 302.0°. Best body text is #FFFFFF at 6.42:1 contrast (WCAG AA passes).
Color values
| HEX | #7A40BA |
|---|---|
| RGB | rgb(122, 64, 186) |
| HSL | hsl(269, 49%, 49%) |
| HSV | hsv(269, 66%, 73%) |
| CMYK | cmyk(34.4%, 65.6%, 0%, 27.1%) |
| CIE-LAB | lab(40.16, 48.83, -55.01) |
| CIE-LCH | lch(40.16, 73.56, 311.59°) |
| OKLab | oklab(50.54% 0.0977 -0.1563) |
| OKLCH | oklch(50.54% 0.184 302) |
| XYZ | xyz(18.7203, 11.3495, 47.6493) |
| Luminance | 0.1135 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Bluey Purple
#6241C7
ΔE00 4.99
Royal Purple
#7851A9
ΔE00 5.38
Darkorchid
#9932CC
ΔE00 5.73
Blueviolet
#8A2BE2
ΔE00 6.06
Purply
#983FB2
ΔE00 6.52
Bluish Purple
#703BE7
ΔE00 6.56
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7A40BA #80BA40
analogous
#4043BA #7A40BA #B740BA
triadic
#7A40BA #BA7A40 #40BA7A
tetradic
#7A40BA #BA4043 #80BA40 #40BAB7
square
#7A40BA #BA4043 #80BA40 #40BAB7
split-complementary
#7A40BA #BAB740 #43BA40
monochromatic
#3E215F #5C308C #7A40BA #996BCC #B999DC
Accessibility & contrast
On white
6.42
#7A40BA on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.27
#7A40BA on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7A40BA
6.42:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7A40BA | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7A40BA | 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)
#005EBE
Deuteranopia (green-blind)
#0C5EB7
Tritanopia (blue-blind)
#6D5B77
Achromatopsia (no color)
#5F5F5F
Design tokens & code
CSS
--color: #7a40ba; /* rgb */ color: rgb(122, 64, 186); /* oklch */ color: oklch(50.5% 0.184 302.0);
Tailwind
colors: {
custom: {
50: '#a578cf',
500: '#7a40ba',
950: '#000000',
},
}SCSS
$custom: #7a40ba; $custom-light: #a578cf; $custom-dark: #000000;
JSON
{
"hex": "#7a40ba",
"rgb": {
"r": 122,
"g": 64,
"b": 186
},
"hsl": {
"h": 268.525,
"s": 48.8,
"l": 49.02
},
"oklch": {
"l": 0.50544,
"c": 0.18436,
"h": 302
},
"luminance": 0.1135
}Semantic roles & 50–950 ramp
primary
#7A40BA
secondary
#ACC88E
accent
#D84F97
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100914
muted
#7F7B82