#7A42C1#7A42C1
#7A42C1 is a mid, vivid violet. Relative luminance 0.119; OKLCH L 51.3% C 0.190 H 300.0°. Best body text is #FFFFFF at 6.22:1 contrast (WCAG AA passes).
Color values
| HEX | #7A42C1 |
|---|---|
| RGB | rgb(122, 66, 193) |
| HSL | hsl(266, 51%, 51%) |
| HSV | hsv(266, 66%, 76%) |
| CMYK | cmyk(36.8%, 65.8%, 0%, 24.3%) |
| CIE-LAB | lab(41.03, 49.56, -57.70) |
| CIE-LCH | lch(41.03, 76.07, 310.66°) |
| OKLab | oklab(51.33% 0.0948 -0.1643) |
| OKLCH | oklch(51.33% 0.19 300) |
| XYZ | xyz(19.5975, 11.8841, 51.7031) |
| Luminance | 0.1188 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Bluey Purple
#6241C7
ΔE00 4.45
Blueviolet
#8A2BE2
ΔE00 5.44
Bluish Purple
#703BE7
ΔE00 5.55
Darkorchid
#9932CC
ΔE00 5.65
Royal Purple
#7851A9
ΔE00 5.68
Burple
#6832E3
ΔE00 6.12
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7A42C1 #89C142
analogous
#4249C1 #7A42C1 #BA42C1
triadic
#7A42C1 #C17A42 #42C17A
tetradic
#7A42C1 #C14249 #89C142 #42C1BA
square
#7A42C1 #C14249 #89C142 #42C1BA
split-complementary
#7A42C1 #C1BA42 #49C142
monochromatic
#402267 #5D3195 #7A42C1 #9A70D0 #BB9EDF
Accessibility & contrast
On white
6.22
#7A42C1 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.38
#7A42C1 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7A42C1
6.22:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7A42C1 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7A42C1 | 1.00 | 6.22 | 3.38 | 6.22 |
| #FFFFFF | 6.22 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.38 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.22 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0060C5
Deuteranopia (green-blind)
#0060BE
Tritanopia (blue-blind)
#6A5F7C
Achromatopsia (no color)
#616161
Design tokens & code
CSS
--color: #7a42c1; /* rgb */ color: rgb(122, 66, 193); /* oklch */ color: oklch(51.3% 0.190 300.0);
Tailwind
colors: {
custom: {
50: '#a67ad5',
500: '#7a42c1',
950: '#000000',
},
}SCSS
$custom: #7a42c1; $custom-light: #a67ad5; $custom-dark: #000000;
JSON
{
"hex": "#7a42c1",
"rgb": {
"r": 122,
"g": 66,
"b": 193
},
"hsl": {
"h": 266.457,
"s": 50.598,
"l": 50.784
},
"oklch": {
"l": 0.51326,
"c": 0.18963,
"h": 300
},
"luminance": 0.11884
}Semantic roles & 50–950 ramp
primary
#7A42C1
secondary
#B3CC93
accent
#DA4E9C
background
#FAF7FD
surface
#F4EEFA
border
#CEC9D3
text
#100914
muted
#7F7B83