#7C40BE#7C40BE
#7C40BE is a mid, vivid violet. Relative luminance 0.117; OKLCH L 51.1% C 0.189 H 301.9°. Best body text is #FFFFFF at 6.30:1 contrast (WCAG AA passes).
Color values
| HEX | #7C40BE |
|---|---|
| RGB | rgb(124, 64, 190) |
| HSL | hsl(269, 50%, 50%) |
| HSV | hsv(269, 66%, 75%) |
| CMYK | cmyk(34.7%, 66.3%, 0%, 25.5%) |
| CIE-LAB | lab(40.69, 50.24, -56.50) |
| CIE-LCH | lch(40.69, 75.61, 311.65°) |
| OKLab | oklab(51.06% 0.1 -0.1606) |
| OKLCH | oklch(51.06% 0.189 301.9) |
| XYZ | xyz(19.4376, 11.6695, 49.9336) |
| Luminance | 0.1167 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Bluey Purple
#6241C7
ΔE00 5.00
Darkorchid
#9932CC
ΔE00 5.27
Blueviolet
#8A2BE2
ΔE00 5.49
Royal Purple
#7851A9
ΔE00 5.67
Bluish Purple
#703BE7
ΔE00 6.10
Purply
#983FB2
ΔE00 6.43
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7C40BE #82BE40
analogous
#4043BE #7C40BE #BB40BE
triadic
#7C40BE #BE7C40 #40BE7C
tetradic
#7C40BE #BE4043 #82BE40 #40BEBB
square
#7C40BE #BE4043 #82BE40 #40BEBB
split-complementary
#7C40BE #BEBB40 #43BE40
monochromatic
#402162 #5E3190 #7C40BE #9B6DCE #BB9BDD
Accessibility & contrast
On white
6.30
#7C40BE on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.33
#7C40BE on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7C40BE
6.30:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7C40BE | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7C40BE | 1.00 | 6.30 | 3.33 | 6.30 |
| #FFFFFF | 6.30 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.33 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.30 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005FC2
Deuteranopia (green-blind)
#035FBB
Tritanopia (blue-blind)
#6E5C79
Achromatopsia (no color)
#606060
Design tokens & code
CSS
--color: #7c40be; /* rgb */ color: rgb(124, 64, 190); /* oklch */ color: oklch(51.1% 0.189 301.9);
Tailwind
colors: {
custom: {
50: '#a779d2',
500: '#7c40be',
950: '#000000',
},
}SCSS
$custom: #7c40be; $custom-light: #a779d2; $custom-dark: #000000;
JSON
{
"hex": "#7c40be",
"rgb": {
"r": 124,
"g": 64,
"b": 190
},
"hsl": {
"h": 268.571,
"s": 49.606,
"l": 49.804
},
"oklch": {
"l": 0.51063,
"c": 0.18923,
"h": 301.9
},
"luminance": 0.1167
}Semantic roles & 50–950 ramp
primary
#7C40BE
secondary
#AEC990
accent
#D94F97
background
#FAF7FD
surface
#F4EEFA
border
#CEC9D3
text
#100914
muted
#7F7B83