#7A40C2#7A40C2
#7A40C2 is a mid, vivid violet. Relative luminance 0.117; OKLCH L 51.1% C 0.193 H 300.0°. Best body text is #FFFFFF at 6.29:1 contrast (WCAG AA passes).
Color values
| HEX | #7A40C2 |
|---|---|
| RGB | rgb(122, 64, 194) |
| HSL | hsl(267, 52%, 51%) |
| HSV | hsv(267, 67%, 76%) |
| CMYK | cmyk(37.1%, 67%, 0%, 23.9%) |
| CIE-LAB | lab(40.73, 50.83, -58.77) |
| CIE-LCH | lch(40.73, 77.70, 310.86°) |
| OKLab | oklab(51.14% 0.0968 -0.1674) |
| OKLCH | oklch(51.14% 0.193 300) |
| XYZ | xyz(19.5946, 11.6992, 52.2543) |
| Luminance | 0.1170 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Bluey Purple
#6241C7
ΔE00 4.37
Blueviolet
#8A2BE2
ΔE00 5.14
Bluish Purple
#703BE7
ΔE00 5.36
Darkorchid
#9932CC
ΔE00 5.53
Burple
#6832E3
ΔE00 5.81
Royal Purple
#7851A9
ΔE00 6.09
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7A40C2 #88C240
analogous
#4047C2 #7A40C2 #BB40C2
triadic
#7A40C2 #C27A40 #40C27A
tetradic
#7A40C2 #C24047 #88C240 #40C2BB
square
#7A40C2 #C24047 #88C240 #40C2BB
split-complementary
#7A40C2 #C2BB40 #47C240
monochromatic
#402167 #5D3095 #7A40C2 #9A6ED1 #BB9DE0
Accessibility & contrast
On white
6.29
#7A40C2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.34
#7A40C2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7A40C2
6.29:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7A40C2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7A40C2 | 1.00 | 6.29 | 3.34 | 6.29 |
| #FFFFFF | 6.29 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.34 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.29 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0060C6
Deuteranopia (green-blind)
#005FBF
Tritanopia (blue-blind)
#6A5E7C
Achromatopsia (no color)
#606060
Design tokens & code
CSS
--color: #7a40c2; /* rgb */ color: rgb(122, 64, 194); /* oklch */ color: oklch(51.1% 0.193 300.0);
Tailwind
colors: {
custom: {
50: '#a679d5',
500: '#7a40c2',
950: '#000000',
},
}SCSS
$custom: #7a40c2; $custom-light: #a679d5; $custom-dark: #000000;
JSON
{
"hex": "#7a40c2",
"rgb": {
"r": 122,
"g": 64,
"b": 194
},
"hsl": {
"h": 266.769,
"s": 51.587,
"l": 50.588
},
"oklch": {
"l": 0.51135,
"c": 0.19336,
"h": 300
},
"luminance": 0.11699
}Semantic roles & 50–950 ramp
primary
#7A40C2
secondary
#B2CC92
accent
#DB4D9C
background
#FAF7FD
surface
#F4EEFA
border
#CEC9D3
text
#100914
muted
#7F7B83