#7C42CA#7C42CA
#7C42CA is a mid, highly saturated violet. Relative luminance 0.124; OKLCH L 52.2% C 0.200 H 298.8°. Best body text is #FFFFFF at 6.02:1 contrast (WCAG AA passes).
Color values
| HEX | #7C42CA |
|---|---|
| RGB | rgb(124, 66, 202) |
| HSL | hsl(266, 56%, 53%) |
| HSV | hsv(266, 67%, 79%) |
| CMYK | cmyk(38.6%, 67.3%, 0%, 20.8%) |
| CIE-LAB | lab(41.92, 52.24, -61.49) |
| CIE-LCH | lch(41.92, 80.69, 310.35°) |
| OKLab | oklab(52.22% 0.0964 -0.1753) |
| OKLCH | oklch(52.22% 0.2 298.8) |
| XYZ | xyz(20.9184, 12.4455, 57.1658) |
| Luminance | 0.1245 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Bluish Purple
#703BE7
ΔE00 4.49
Bluey Purple
#6241C7
ΔE00 4.50
Blueviolet
#8A2BE2
ΔE00 4.50
Darkorchid
#9932CC
ΔE00 5.35
Burple
#6832E3
ΔE00 5.43
Purpley Blue
#5F34E7
ΔE00 6.33
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7C42CA #90CA42
analogous
#424CCA #7C42CA #C042CA
triadic
#7C42CA #CA7C42 #42CA7C
tetradic
#7C42CA #CA424C #90CA42 #42CAC0
square
#7C42CA #CA424C #90CA42 #42CAC0
split-complementary
#7C42CA #CAC042 #4CCA42
monochromatic
#432072 #5F2DA2 #7C42CA #9D72D7 #BEA2E5
Accessibility & contrast
On white
6.02
#7C42CA on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.49
#7C42CA on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7C42CA
6.02:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7C42CA | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7C42CA | 1.00 | 6.02 | 3.49 | 6.02 |
| #FFFFFF | 6.02 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.49 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.02 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0063CE
Deuteranopia (green-blind)
#0062C7
Tritanopia (blue-blind)
#6A6281
Achromatopsia (no color)
#636363
Design tokens & code
CSS
--color: #7c42ca; /* rgb */ color: rgb(124, 66, 202); /* oklch */ color: oklch(52.2% 0.200 298.8);
Tailwind
colors: {
custom: {
50: '#a87adb',
500: '#7c42ca',
950: '#000000',
},
}SCSS
$custom: #7c42ca; $custom-light: #a87adb; $custom-dark: #000000;
JSON
{
"hex": "#7c42ca",
"rgb": {
"r": 124,
"g": 66,
"b": 202
},
"hsl": {
"h": 265.588,
"s": 56.198,
"l": 52.549
},
"oklch": {
"l": 0.52219,
"c": 0.20008,
"h": 298.8
},
"luminance": 0.12446
}Semantic roles & 50–950 ramp
primary
#7C42CA
secondary
#B8D196
accent
#DF489F
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100915
muted
#7F7B83