#7C40B2#7C40B2
#7C40B2 is a mid, vivid violet. Relative luminance 0.112; OKLCH L 50.2% C 0.176 H 305.1°. Best body text is #FFFFFF at 6.50:1 contrast (WCAG AA passes).
Color values
| HEX | #7C40B2 |
|---|---|
| RGB | rgb(124, 64, 178) |
| HSL | hsl(272, 47%, 47%) |
| HSV | hsv(272, 64%, 70%) |
| CMYK | cmyk(30.3%, 64%, 0%, 30.2%) |
| CIE-LAB | lab(39.86, 47.31, -50.78) |
| CIE-LCH | lch(39.86, 69.40, 312.98°) |
| OKLab | oklab(50.21% 0.1011 -0.1438) |
| OKLCH | oklch(50.21% 0.176 305.1) |
| XYZ | xyz(18.1797, 11.1663, 43.3084) |
| Luminance | 0.1117 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal Purple
#7851A9
ΔE00 4.83
Purply
#983FB2
ΔE00 5.69
Darkorchid
#9932CC
ΔE00 5.88
Rebeccapurple
#663399
ΔE00 6.00
Bluey Purple
#6241C7
ΔE00 6.22
Blueviolet
#8A2BE2
ΔE00 7.07
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7C40B2 #76B240
analogous
#4340B2 #7C40B2 #B240AF
triadic
#7C40B2 #B27C40 #40B27C
tetradic
#7C40B2 #B24340 #76B240 #40AFB2
square
#7C40B2 #B24340 #76B240 #40AFB2
split-complementary
#7C40B2 #AFB240 #40B243
monochromatic
#3D2058 #5D3085 #7C40B2 #9A67C8 #B894D8
Accessibility & contrast
On white
6.50
#7C40B2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.23
#7C40B2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7C40B2
6.50:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7C40B2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7C40B2 | 1.00 | 6.50 | 3.23 | 6.50 |
| #FFFFFF | 6.50 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.23 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.50 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005CB6
Deuteranopia (green-blind)
#235EAF
Tritanopia (blue-blind)
#725873
Achromatopsia (no color)
#5E5E5E
Design tokens & code
CSS
--color: #7c40b2; /* rgb */ color: rgb(124, 64, 178); /* oklch */ color: oklch(50.2% 0.176 305.1);
Tailwind
colors: {
custom: {
50: '#a678ca',
500: '#7c40b2',
950: '#000000',
},
}SCSS
$custom: #7c40b2; $custom-light: #a678ca; $custom-dark: #000000;
JSON
{
"hex": "#7c40b2",
"rgb": {
"r": 124,
"g": 64,
"b": 178
},
"hsl": {
"h": 271.579,
"s": 47.107,
"l": 47.451
},
"oklch": {
"l": 0.50205,
"c": 0.17579,
"h": 305.1
},
"luminance": 0.11166
}Semantic roles & 50–950 ramp
primary
#7C40B2
secondary
#A5C48A
accent
#D75190
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#100913
muted
#7F7B82