#7E42BF#7E42BF
#7E42BF is a mid, vivid violet. Relative luminance 0.121; OKLCH L 51.6% C 0.188 H 302.3°. Best body text is #FFFFFF at 6.14:1 contrast (WCAG AA passes).
Color values
| HEX | #7E42BF |
|---|---|
| RGB | rgb(126, 66, 191) |
| HSL | hsl(269, 49%, 50%) |
| HSV | hsv(269, 65%, 75%) |
| CMYK | cmyk(34%, 65.4%, 0%, 25.1%) |
| CIE-LAB | lab(41.36, 49.91, -55.97) |
| CIE-LCH | lch(41.36, 74.99, 311.72°) |
| OKLab | oklab(51.63% 0.1004 -0.159) |
| OKLCH | oklch(51.63% 0.188 302.3) |
| XYZ | xyz(19.9542, 12.0936, 50.5632) |
| Luminance | 0.1209 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Darkorchid
#9932CC
ΔE00 5.04
Bluey Purple
#6241C7
ΔE00 5.33
Royal Purple
#7851A9
ΔE00 5.41
Blueviolet
#8A2BE2
ΔE00 5.51
Purply
#983FB2
ΔE00 6.12
Bluish Purple
#703BE7
ΔE00 6.19
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7E42BF #83BF42
analogous
#4244BF #7E42BF #BC42BF
triadic
#7E42BF #BF7E42 #42BF7E
tetradic
#7E42BF #BF4244 #83BF42 #42BFBC
square
#7E42BF #BF4244 #83BF42 #42BFBC
split-complementary
#7E42BF #BFBC42 #44BF42
monochromatic
#422265 #603292 #7E42BF #9D70CE #BC9DDE
Accessibility & contrast
On white
6.14
#7E42BF on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.42
#7E42BF on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7E42BF
6.14:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7E42BF | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7E42BF | 1.00 | 6.14 | 3.42 | 6.14 |
| #FFFFFF | 6.14 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.42 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.14 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0061C3
Deuteranopia (green-blind)
#0F61BC
Tritanopia (blue-blind)
#715E7B
Achromatopsia (no color)
#626262
Design tokens & code
CSS
--color: #7e42bf; /* rgb */ color: rgb(126, 66, 191); /* oklch */ color: oklch(51.6% 0.188 302.3);
Tailwind
colors: {
custom: {
50: '#a87ad3',
500: '#7e42bf',
950: '#000000',
},
}SCSS
$custom: #7e42bf; $custom-light: #a87ad3; $custom-dark: #000000;
JSON
{
"hex": "#7e42bf",
"rgb": {
"r": 126,
"g": 66,
"b": 191
},
"hsl": {
"h": 268.8,
"s": 49.407,
"l": 50.392
},
"oklch": {
"l": 0.51627,
"c": 0.18808,
"h": 302.3
},
"luminance": 0.12094
}Semantic roles & 50–950 ramp
primary
#7E42BF
secondary
#B0CA93
accent
#D94F97
background
#FAF7FD
surface
#F4EEFA
border
#CEC9D3
text
#100914
muted
#7F7B83