#7C42BB#7C42BB
#7C42BB is a mid, vivid violet. Relative luminance 0.118; OKLCH L 51.1% C 0.183 H 302.4°. Best body text is #FFFFFF at 6.26:1 contrast (WCAG AA passes).
Color values
| HEX | #7C42BB |
|---|---|
| RGB | rgb(124, 66, 187) |
| HSL | hsl(269, 48%, 50%) |
| HSV | hsv(269, 65%, 73%) |
| CMYK | cmyk(33.7%, 64.7%, 0%, 26.7%) |
| CIE-LAB | lab(40.85, 48.49, -54.48) |
| CIE-LCH | lch(40.85, 72.93, 311.67°) |
| OKLab | oklab(51.11% 0.0981 -0.1547) |
| OKLCH | oklch(51.11% 0.183 302.4) |
| XYZ | xyz(19.2279, 11.7693, 48.2628) |
| Luminance | 0.1177 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal Purple
#7851A9
ΔE00 5.06
Bluey Purple
#6241C7
ΔE00 5.27
Darkorchid
#9932CC
ΔE00 5.48
Blueviolet
#8A2BE2
ΔE00 6.04
Purply
#983FB2
ΔE00 6.19
Bluish Purple
#703BE7
ΔE00 6.61
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7C42BB #81BB42
analogous
#4245BB #7C42BB #B842BB
triadic
#7C42BB #BB7C42 #42BB7C
tetradic
#7C42BB #BB4245 #81BB42 #42BBB8
square
#7C42BB #BB4245 #81BB42 #42BBB8
split-complementary
#7C42BB #BBB842 #45BB42
monochromatic
#402261 #5E328E #7C42BB #9B6ECC #BA9CDC
Accessibility & contrast
On white
6.26
#7C42BB on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.35
#7C42BB on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7C42BB
6.26:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7C42BB | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7C42BB | 1.00 | 6.26 | 3.35 | 6.26 |
| #FFFFFF | 6.26 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.35 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.26 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005FBF
Deuteranopia (green-blind)
#1560B8
Tritanopia (blue-blind)
#6F5D79
Achromatopsia (no color)
#606060
Design tokens & code
CSS
--color: #7c42bb; /* rgb */ color: rgb(124, 66, 187); /* oklch */ color: oklch(51.1% 0.183 302.4);
Tailwind
colors: {
custom: {
50: '#a67ad0',
500: '#7c42bb',
950: '#000000',
},
}SCSS
$custom: #7c42bb; $custom-light: #a67ad0; $custom-dark: #000000;
JSON
{
"hex": "#7c42bb",
"rgb": {
"r": 124,
"g": 66,
"b": 187
},
"hsl": {
"h": 268.76,
"s": 47.826,
"l": 49.608
},
"oklch": {
"l": 0.51113,
"c": 0.18318,
"h": 302.4
},
"luminance": 0.11769
}Semantic roles & 50–950 ramp
primary
#7C42BB
secondary
#AEC891
accent
#D75097
background
#FAF7FC
surface
#F4EEF9
border
#CEC9D2
text
#100914
muted
#7F7B82