#7A40C4#7A40C4
#7A40C4 is a mid, vivid violet. Relative luminance 0.118; OKLCH L 51.3% C 0.196 H 299.6°. Best body text is #FFFFFF at 6.25:1 contrast (WCAG AA passes).
Color values
| HEX | #7A40C4 |
|---|---|
| RGB | rgb(122, 64, 196) |
| HSL | hsl(266, 53%, 51%) |
| HSV | hsv(266, 67%, 77%) |
| CMYK | cmyk(37.8%, 67.3%, 0%, 23.1%) |
| CIE-LAB | lab(40.88, 51.33, -59.70) |
| CIE-LCH | lch(40.88, 78.73, 310.69°) |
| OKLab | oklab(51.29% 0.0966 -0.1701) |
| OKLCH | oklch(51.29% 0.196 299.6) |
| XYZ | xyz(19.8208, 11.7897, 53.4452) |
| Luminance | 0.1179 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Bluey Purple
#6241C7
ΔE00 4.27
Blueviolet
#8A2BE2
ΔE00 4.93
Bluish Purple
#703BE7
ΔE00 5.07
Darkorchid
#9932CC
ΔE00 5.51
Burple
#6832E3
ΔE00 5.59
Royal Purple
#7851A9
ΔE00 6.28
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7A40C4 #8AC440
analogous
#4048C4 #7A40C4 #BC40C4
triadic
#7A40C4 #C47A40 #40C47A
tetradic
#7A40C4 #C44048 #8AC440 #40C4BC
square
#7A40C4 #C44048 #8AC440 #40C4BC
split-complementary
#7A40C4 #C4BC40 #48C440
monochromatic
#402069 #5D2F98 #7A40C4 #9B6FD2 #BB9EE1
Accessibility & contrast
On white
6.25
#7A40C4 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.36
#7A40C4 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7A40C4
6.25:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7A40C4 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7A40C4 | 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)
#0060C8
Deuteranopia (green-blind)
#005FC1
Tritanopia (blue-blind)
#695F7D
Achromatopsia (no color)
#606060
Design tokens & code
CSS
--color: #7a40c4; /* rgb */ color: rgb(122, 64, 196); /* oklch */ color: oklch(51.3% 0.196 299.6);
Tailwind
colors: {
custom: {
50: '#a679d7',
500: '#7a40c4',
950: '#000000',
},
}SCSS
$custom: #7a40c4; $custom-light: #a679d7; $custom-dark: #000000;
JSON
{
"hex": "#7a40c4",
"rgb": {
"r": 122,
"g": 64,
"b": 196
},
"hsl": {
"h": 266.364,
"s": 52.8,
"l": 50.98
},
"oklch": {
"l": 0.51286,
"c": 0.19561,
"h": 299.6
},
"luminance": 0.1179
}Semantic roles & 50–950 ramp
primary
#7A40C4
secondary
#B3CD93
accent
#DC4C9D
background
#FAF7FD
surface
#F4EEFA
border
#CEC9D3
text
#100914
muted
#7F7B83