#7E40BA#7E40BA
#7E40BA is a mid, vivid violet. Relative luminance 0.116; OKLCH L 51.0% C 0.185 H 303.8°. Best body text is #FFFFFF at 6.31:1 contrast (WCAG AA passes).
Color values
| HEX | #7E40BA |
|---|---|
| RGB | rgb(126, 64, 186) |
| HSL | hsl(270, 49%, 49%) |
| HSV | hsv(270, 66%, 73%) |
| CMYK | cmyk(32.3%, 65.6%, 0%, 27.1%) |
| CIE-LAB | lab(40.65, 49.69, -54.20) |
| CIE-LCH | lch(40.65, 73.53, 312.52°) |
| OKLab | oklab(51% 0.1032 -0.1538) |
| OKLCH | oklch(51% 0.185 303.8) |
| XYZ | xyz(19.2985, 11.6476, 47.6764) |
| Luminance | 0.1165 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Darkorchid
#9932CC
ΔE00 5.10
Royal Purple
#7851A9
ΔE00 5.32
Bluey Purple
#6241C7
ΔE00 5.70
Purply
#983FB2
ΔE00 5.76
Blueviolet
#8A2BE2
ΔE00 5.94
Darkviolet
#9400D3
ΔE00 6.80
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7E40BA #7CBA40
analogous
#4140BA #7E40BA #BA40B9
triadic
#7E40BA #BA7E40 #40BA7E
tetradic
#7E40BA #BA4140 #7CBA40 #40B9BA
square
#7E40BA #BA4140 #7CBA40 #40B9BA
split-complementary
#7E40BA #B9BA40 #40BA41
monochromatic
#40215F #5F308C #7E40BA #9C6BCC #BB99DC
Accessibility & contrast
On white
6.31
#7E40BA on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.33
#7E40BA on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7E40BA
6.31:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7E40BA | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7E40BA | 1.00 | 6.31 | 3.33 | 6.31 |
| #FFFFFF | 6.31 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.33 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.31 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005EBE
Deuteranopia (green-blind)
#1760B7
Tritanopia (blue-blind)
#735B77
Achromatopsia (no color)
#606060
Design tokens & code
CSS
--color: #7e40ba; /* rgb */ color: rgb(126, 64, 186); /* oklch */ color: oklch(51.0% 0.185 303.8);
Tailwind
colors: {
custom: {
50: '#a879cf',
500: '#7e40ba',
950: '#000000',
},
}SCSS
$custom: #7e40ba; $custom-light: #a879cf; $custom-dark: #000000;
JSON
{
"hex": "#7e40ba",
"rgb": {
"r": 126,
"g": 64,
"b": 186
},
"hsl": {
"h": 270.492,
"s": 48.8,
"l": 49.02
},
"oklch": {
"l": 0.51003,
"c": 0.1852,
"h": 303.8
},
"luminance": 0.11648
}Semantic roles & 50–950 ramp
primary
#7E40BA
secondary
#AAC88E
accent
#D84F93
background
#FAF7FC
surface
#F4EEF9
border
#CEC9D2
text
#100914
muted
#7F7B82