#7C40C3#7C40C3
#7C40C3 is a mid, vivid violet. Relative luminance 0.119; OKLCH L 51.4% C 0.195 H 300.7°. Best body text is #FFFFFF at 6.22:1 contrast (WCAG AA passes).
Color values
| HEX | #7C40C3 |
|---|---|
| RGB | rgb(124, 64, 195) |
| HSL | hsl(267, 52%, 51%) |
| HSV | hsv(267, 67%, 76%) |
| CMYK | cmyk(36.4%, 67.2%, 0%, 23.5%) |
| CIE-LAB | lab(41.04, 51.48, -58.84) |
| CIE-LCH | lch(41.04, 78.18, 311.19°) |
| OKLab | oklab(51.43% 0.0994 -0.1675) |
| OKLCH | oklch(51.43% 0.195 300.7) |
| XYZ | xyz(19.9935, 11.8919, 52.8612) |
| Luminance | 0.1189 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Bluey Purple
#6241C7
ΔE00 4.68
Blueviolet
#8A2BE2
ΔE00 4.93
Darkorchid
#9932CC
ΔE00 5.18
Bluish Purple
#703BE7
ΔE00 5.37
Burple
#6832E3
ΔE00 5.93
Royal Purple
#7851A9
ΔE00 6.13
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7C40C3 #87C340
analogous
#4045C3 #7C40C3 #BD40C3
triadic
#7C40C3 #C37C40 #40C37C
tetradic
#7C40C3 #C34045 #87C340 #40C3BD
square
#7C40C3 #C34045 #87C340 #40C3BD
split-complementary
#7C40C3 #C3BD40 #45C340
monochromatic
#412168 #5F2F97 #7C40C3 #9C6FD2 #BC9DE0
Accessibility & contrast
On white
6.22
#7C40C3 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.38
#7C40C3 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7C40C3
6.22:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7C40C3 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7C40C3 | 1.00 | 6.22 | 3.38 | 6.22 |
| #FFFFFF | 6.22 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.38 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.22 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0060C7
Deuteranopia (green-blind)
#0060C0
Tritanopia (blue-blind)
#6D5E7C
Achromatopsia (no color)
#616161
Design tokens & code
CSS
--color: #7c40c3; /* rgb */ color: rgb(124, 64, 195); /* oklch */ color: oklch(51.4% 0.195 300.7);
Tailwind
colors: {
custom: {
50: '#a779d6',
500: '#7c40c3',
950: '#000000',
},
}SCSS
$custom: #7c40c3; $custom-light: #a779d6; $custom-dark: #000000;
JSON
{
"hex": "#7c40c3",
"rgb": {
"r": 124,
"g": 64,
"b": 195
},
"hsl": {
"h": 267.481,
"s": 52.191,
"l": 50.784
},
"oklch": {
"l": 0.51433,
"c": 0.19481,
"h": 300.7
},
"luminance": 0.11892
}Semantic roles & 50–950 ramp
primary
#7C40C3
secondary
#B2CC92
accent
#DC4C9A
background
#FAF7FD
surface
#F4EEFA
border
#CEC9D3
text
#100914
muted
#7F7B83