#7E42BC#7E42BC
#7E42BC is a mid, vivid violet. Relative luminance 0.120; OKLCH L 51.4% C 0.185 H 303.0°. Best body text is #FFFFFF at 6.19:1 contrast (WCAG AA passes).
Color values
| HEX | #7E42BC |
|---|---|
| RGB | rgb(126, 66, 188) |
| HSL | hsl(270, 48%, 50%) |
| HSV | hsv(270, 65%, 74%) |
| CMYK | cmyk(33%, 64.9%, 0%, 26.3%) |
| CIE-LAB | lab(41.16, 49.17, -54.55) |
| CIE-LCH | lch(41.16, 73.44, 312.03°) |
| OKLab | oklab(51.41% 0.1007 -0.1549) |
| OKLCH | oklch(51.41% 0.185 303) |
| XYZ | xyz(19.6274, 11.9629, 48.8422) |
| Luminance | 0.1196 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal Purple
#7851A9
ΔE00 5.13
Darkorchid
#9932CC
ΔE00 5.13
Bluey Purple
#6241C7
ΔE00 5.56
Blueviolet
#8A2BE2
ΔE00 5.87
Purply
#983FB2
ΔE00 5.88
Bluish Purple
#703BE7
ΔE00 6.63
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7E42BC #80BC42
analogous
#4243BC #7E42BC #BB42BC
triadic
#7E42BC #BC7E42 #42BC7E
tetradic
#7E42BC #BC4243 #80BC42 #42BCBB
square
#7E42BC #BC4243 #80BC42 #42BCBB
split-complementary
#7E42BC #BCBB42 #43BC42
monochromatic
#412261 #60328F #7E42BC #9D6FCC #BC9CDC
Accessibility & contrast
On white
6.19
#7E42BC on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.39
#7E42BC on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7E42BC
6.19:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7E42BC | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7E42BC | 1.00 | 6.19 | 3.39 | 6.19 |
| #FFFFFF | 6.19 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.39 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.19 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0060C0
Deuteranopia (green-blind)
#1861B9
Tritanopia (blue-blind)
#725D79
Achromatopsia (no color)
#616161
Design tokens & code
CSS
--color: #7e42bc; /* rgb */ color: rgb(126, 66, 188); /* oklch */ color: oklch(51.4% 0.185 303.0);
Tailwind
colors: {
custom: {
50: '#a87ad1',
500: '#7e42bc',
950: '#000000',
},
}SCSS
$custom: #7e42bc; $custom-light: #a87ad1; $custom-dark: #000000;
JSON
{
"hex": "#7e42bc",
"rgb": {
"r": 126,
"g": 66,
"b": 188
},
"hsl": {
"h": 269.508,
"s": 48.031,
"l": 49.804
},
"oklch": {
"l": 0.51412,
"c": 0.18472,
"h": 303
},
"luminance": 0.11963
}Semantic roles & 50–950 ramp
primary
#7E42BC
secondary
#ADC991
accent
#D85095
background
#FAF7FC
surface
#F4EEF9
border
#CEC9D2
text
#100914
muted
#7F7B82