#7E42BB#7E42BB
#7E42BB is a mid, vivid violet. Relative luminance 0.119; OKLCH L 51.3% C 0.184 H 303.3°. Best body text is #FFFFFF at 6.21:1 contrast (WCAG AA passes).
Color values
| HEX | #7E42BB |
|---|---|
| RGB | rgb(126, 66, 187) |
| HSL | hsl(270, 48%, 50%) |
| HSV | hsv(270, 65%, 73%) |
| CMYK | cmyk(32.6%, 64.7%, 0%, 26.7%) |
| CIE-LAB | lab(41.09, 48.93, -54.08) |
| CIE-LCH | lch(41.09, 72.93, 312.14°) |
| OKLab | oklab(51.34% 0.1008 -0.1535) |
| OKLCH | oklch(51.34% 0.184 303.3) |
| XYZ | xyz(19.5200, 11.9199, 48.2765) |
| Luminance | 0.1192 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal Purple
#7851A9
ΔE00 5.04
Darkorchid
#9932CC
ΔE00 5.17
Bluey Purple
#6241C7
ΔE00 5.64
Purply
#983FB2
ΔE00 5.81
Blueviolet
#8A2BE2
ΔE00 5.99
Bluish Purple
#703BE7
ΔE00 6.78
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7E42BB #7FBB42
analogous
#4243BB #7E42BB #BB42BB
triadic
#7E42BB #BB7E42 #42BB7E
tetradic
#7E42BB #BB4243 #7FBB42 #42BBBB
square
#7E42BB #BB4243 #7FBB42 #42BBBB
split-complementary
#7E42BB #BBBB42 #43BB42
monochromatic
#412261 #60328E #7E42BB #9D6ECC #BB9CDC
Accessibility & contrast
On white
6.21
#7E42BB on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.38
#7E42BB on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7E42BB
6.21:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7E42BB | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7E42BB | 1.00 | 6.21 | 3.38 | 6.21 |
| #FFFFFF | 6.21 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.38 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.21 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0060BF
Deuteranopia (green-blind)
#1A61B8
Tritanopia (blue-blind)
#725C79
Achromatopsia (no color)
#616161
Design tokens & code
CSS
--color: #7e42bb; /* rgb */ color: rgb(126, 66, 187); /* oklch */ color: oklch(51.3% 0.184 303.3);
Tailwind
colors: {
custom: {
50: '#a87ad0',
500: '#7e42bb',
950: '#000000',
},
}SCSS
$custom: #7e42bb; $custom-light: #a87ad0; $custom-dark: #000000;
JSON
{
"hex": "#7e42bb",
"rgb": {
"r": 126,
"g": 66,
"b": 187
},
"hsl": {
"h": 269.752,
"s": 47.826,
"l": 49.608
},
"oklch": {
"l": 0.51341,
"c": 0.1836,
"h": 303.3
},
"luminance": 0.1192
}Semantic roles & 50–950 ramp
primary
#7E42BB
secondary
#ADC891
accent
#D75094
background
#FAF7FC
surface
#F4EEF9
border
#CEC9D2
text
#100914
muted
#7F7B82