#7C40C5#7C40C5
#7C40C5 is a mid, vivid violet. Relative luminance 0.120; OKLCH L 51.6% C 0.197 H 300.2°. Best body text is #FFFFFF at 6.18:1 contrast (WCAG AA passes).
Color values
| HEX | #7C40C5 |
|---|---|
| RGB | rgb(124, 64, 197) |
| HSL | hsl(267, 53%, 51%) |
| HSV | hsv(267, 68%, 77%) |
| CMYK | cmyk(37.1%, 67.5%, 0%, 22.7%) |
| CIE-LAB | lab(41.19, 51.98, -59.77) |
| CIE-LCH | lch(41.19, 79.21, 311.02°) |
| OKLab | oklab(51.58% 0.0992 -0.1703) |
| OKLCH | oklch(51.58% 0.197 300.2) |
| XYZ | xyz(20.2211, 11.9829, 54.0601) |
| Luminance | 0.1198 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Bluey Purple
#6241C7
ΔE00 4.59
Blueviolet
#8A2BE2
ΔE00 4.72
Bluish Purple
#703BE7
ΔE00 5.09
Darkorchid
#9932CC
ΔE00 5.17
Burple
#6832E3
ΔE00 5.71
Royal Purple
#7851A9
ΔE00 6.32
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7C40C5 #89C540
analogous
#4046C5 #7C40C5 #BF40C5
triadic
#7C40C5 #C57C40 #40C57C
tetradic
#7C40C5 #C54046 #89C540 #40C5BF
square
#7C40C5 #C54046 #89C540 #40C5BF
split-complementary
#7C40C5 #C5BF40 #46C540
monochromatic
#42206A #5F2F99 #7C40C5 #9C6FD3 #BC9EE2
Accessibility & contrast
On white
6.18
#7C40C5 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.40
#7C40C5 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7C40C5
6.18:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7C40C5 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7C40C5 | 1.00 | 6.18 | 3.40 | 6.18 |
| #FFFFFF | 6.18 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.40 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.18 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0061C9
Deuteranopia (green-blind)
#0060C2
Tritanopia (blue-blind)
#6C5F7D
Achromatopsia (no color)
#616161
Design tokens & code
CSS
--color: #7c40c5; /* rgb */ color: rgb(124, 64, 197); /* oklch */ color: oklch(51.6% 0.197 300.2);
Tailwind
colors: {
custom: {
50: '#a779d7',
500: '#7c40c5',
950: '#000000',
},
}SCSS
$custom: #7c40c5; $custom-light: #a779d7; $custom-dark: #000000;
JSON
{
"hex": "#7c40c5",
"rgb": {
"r": 124,
"g": 64,
"b": 197
},
"hsl": {
"h": 267.068,
"s": 53.414,
"l": 51.176
},
"oklch": {
"l": 0.51583,
"c": 0.19704,
"h": 300.2
},
"luminance": 0.11983
}Semantic roles & 50–950 ramp
primary
#7C40C5
secondary
#B3CE93
accent
#DD4B9B
background
#FAF7FD
surface
#F4EEFA
border
#CEC9D3
text
#100914
muted
#7F7B83