#7C42CD#7C42CD
#7C42CD is a mid, highly saturated violet. Relative luminance 0.126; OKLCH L 52.4% C 0.203 H 298.1°. Best body text is #FFFFFF at 5.97:1 contrast (WCAG AA passes).
Color values
| HEX | #7C42CD |
|---|---|
| RGB | rgb(124, 66, 205) |
| HSL | hsl(265, 58%, 53%) |
| HSV | hsv(265, 68%, 80%) |
| CMYK | cmyk(39.5%, 67.8%, 0%, 19.6%) |
| CIE-LAB | lab(42.14, 53.00, -62.87) |
| CIE-LCH | lch(42.14, 82.23, 310.13°) |
| OKLab | oklab(52.45% 0.096 -0.1794) |
| OKLCH | oklch(52.45% 0.203 298.1) |
| XYZ | xyz(21.2770, 12.5890, 59.0547) |
| Luminance | 0.1259 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Bluish Purple
#703BE7
ΔE00 4.11
Blueviolet
#8A2BE2
ΔE00 4.28
Bluey Purple
#6241C7
ΔE00 4.49
Burple
#6832E3
ΔE00 5.19
Darkorchid
#9932CC
ΔE00 5.42
Purpleish Blue
#6140EF
ΔE00 5.97
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7C42CD #93CD42
analogous
#424DCD #7C42CD #C142CD
triadic
#7C42CD #CD7C42 #42CD7C
tetradic
#7C42CD #CD424D #93CD42 #42CDC1
square
#7C42CD #CD424D #93CD42 #42CDC1
split-complementary
#7C42CD #CDC142 #4DCD42
monochromatic
#431F76 #5F2CA6 #7C42CD #9E72DA #BFA3E7
Accessibility & contrast
On white
5.97
#7C42CD on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.52
#7C42CD on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7C42CD
5.97:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7C42CD | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7C42CD | 1.00 | 5.97 | 3.52 | 5.97 |
| #FFFFFF | 5.97 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.52 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.97 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0064D1
Deuteranopia (green-blind)
#0062CA
Tritanopia (blue-blind)
#686382
Achromatopsia (no color)
#636363
Design tokens & code
CSS
--color: #7c42cd; /* rgb */ color: rgb(124, 66, 205); /* oklch */ color: oklch(52.4% 0.203 298.1);
Tailwind
colors: {
custom: {
50: '#a87add',
500: '#7c42cd',
950: '#000000',
},
}SCSS
$custom: #7c42cd; $custom-light: #a87add; $custom-dark: #000000;
JSON
{
"hex": "#7c42cd",
"rgb": {
"r": 124,
"g": 66,
"b": 205
},
"hsl": {
"h": 265.036,
"s": 58.159,
"l": 53.137
},
"oklch": {
"l": 0.52447,
"c": 0.20344,
"h": 298.1
},
"luminance": 0.12589
}Semantic roles & 50–950 ramp
primary
#7C42CD
secondary
#BAD397
accent
#E146A1
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100915
muted
#7F7B83