#7C40C4#7C40C4
#7C40C4 is a mid, vivid violet. Relative luminance 0.119; OKLCH L 51.5% C 0.196 H 300.5°. Best body text is #FFFFFF at 6.20:1 contrast (WCAG AA passes).
Color values
| HEX | #7C40C4 |
|---|---|
| RGB | rgb(124, 64, 196) |
| HSL | hsl(267, 53%, 51%) |
| HSV | hsv(267, 67%, 77%) |
| CMYK | cmyk(36.7%, 67.3%, 0%, 23.1%) |
| CIE-LAB | lab(41.12, 51.73, -59.30) |
| CIE-LCH | lch(41.12, 78.70, 311.10°) |
| OKLab | oklab(51.51% 0.0993 -0.1689) |
| OKLCH | oklch(51.51% 0.196 300.5) |
| XYZ | xyz(20.1069, 11.9372, 53.4586) |
| Luminance | 0.1194 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Bluey Purple
#6241C7
ΔE00 4.63
Blueviolet
#8A2BE2
ΔE00 4.82
Darkorchid
#9932CC
ΔE00 5.18
Bluish Purple
#703BE7
ΔE00 5.23
Burple
#6832E3
ΔE00 5.82
Royal Purple
#7851A9
ΔE00 6.22
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7C40C4 #88C440
analogous
#4046C4 #7C40C4 #BE40C4
triadic
#7C40C4 #C47C40 #40C47C
tetradic
#7C40C4 #C44046 #88C440 #40C4BE
square
#7C40C4 #C44046 #88C440 #40C4BE
split-complementary
#7C40C4 #C4BE40 #46C440
monochromatic
#412069 #5F2F98 #7C40C4 #9C6FD2 #BC9EE1
Accessibility & contrast
On white
6.20
#7C40C4 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.39
#7C40C4 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7C40C4
6.20:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7C40C4 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7C40C4 | 1.00 | 6.20 | 3.39 | 6.20 |
| #FFFFFF | 6.20 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.39 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.20 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0060C8
Deuteranopia (green-blind)
#0060C1
Tritanopia (blue-blind)
#6C5F7D
Achromatopsia (no color)
#616161
Design tokens & code
CSS
--color: #7c40c4; /* rgb */ color: rgb(124, 64, 196); /* oklch */ color: oklch(51.5% 0.196 300.5);
Tailwind
colors: {
custom: {
50: '#a779d7',
500: '#7c40c4',
950: '#000000',
},
}SCSS
$custom: #7c40c4; $custom-light: #a779d7; $custom-dark: #000000;
JSON
{
"hex": "#7c40c4",
"rgb": {
"r": 124,
"g": 64,
"b": 196
},
"hsl": {
"h": 267.273,
"s": 52.8,
"l": 50.98
},
"oklch": {
"l": 0.51508,
"c": 0.19592,
"h": 300.5
},
"luminance": 0.11937
}Semantic roles & 50–950 ramp
primary
#7C40C4
secondary
#B3CD93
accent
#DC4C9A
background
#FAF7FD
surface
#F4EEFA
border
#CEC9D3
text
#100914
muted
#7F7B83