#7A42C4#7A42C4
#7A42C4 is a mid, vivid violet. Relative luminance 0.120; OKLCH L 51.5% C 0.193 H 299.3°. Best body text is #FFFFFF at 6.17:1 contrast (WCAG AA passes).
Color values
| HEX | #7A42C4 |
|---|---|
| RGB | rgb(122, 66, 196) |
| HSL | hsl(266, 52%, 51%) |
| HSV | hsv(266, 66%, 77%) |
| CMYK | cmyk(37.8%, 66.3%, 0%, 23.1%) |
| CIE-LAB | lab(41.25, 50.32, -59.10) |
| CIE-LCH | lch(41.25, 77.62, 310.41°) |
| OKLab | oklab(51.55% 0.0944 -0.1684) |
| OKLCH | oklch(51.55% 0.193 299.3) |
| XYZ | xyz(19.9356, 12.0193, 53.4835) |
| Luminance | 0.1202 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Bluey Purple
#6241C7
ΔE00 4.30
Bluish Purple
#703BE7
ΔE00 5.13
Blueviolet
#8A2BE2
ΔE00 5.14
Darkorchid
#9932CC
ΔE00 5.63
Burple
#6832E3
ΔE00 5.79
Royal Purple
#7851A9
ΔE00 5.99
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7A42C4 #8CC442
analogous
#424BC4 #7A42C4 #BB42C4
triadic
#7A42C4 #C47A42 #42C47A
tetradic
#7A42C4 #C4424B #8CC442 #42C4BB
square
#7A42C4 #C4424B #8CC442 #42C4BB
split-complementary
#7A42C4 #C4BB42 #4BC442
monochromatic
#41216A #5D3099 #7A42C4 #9B71D3 #BC9FE1
Accessibility & contrast
On white
6.17
#7A42C4 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.40
#7A42C4 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7A42C4
6.17:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7A42C4 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7A42C4 | 1.00 | 6.17 | 3.40 | 6.17 |
| #FFFFFF | 6.17 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.40 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.17 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0061C8
Deuteranopia (green-blind)
#0060C1
Tritanopia (blue-blind)
#69607D
Achromatopsia (no color)
#616161
Design tokens & code
CSS
--color: #7a42c4; /* rgb */ color: rgb(122, 66, 196); /* oklch */ color: oklch(51.5% 0.193 299.3);
Tailwind
colors: {
custom: {
50: '#a67ad7',
500: '#7a42c4',
950: '#000000',
},
}SCSS
$custom: #7a42c4; $custom-light: #a67ad7; $custom-dark: #000000;
JSON
{
"hex": "#7a42c4",
"rgb": {
"r": 122,
"g": 66,
"b": 196
},
"hsl": {
"h": 265.846,
"s": 52.419,
"l": 51.373
},
"oklch": {
"l": 0.51549,
"c": 0.19304,
"h": 299.3
},
"luminance": 0.1202
}Semantic roles & 50–950 ramp
primary
#7A42C4
secondary
#B5CE94
accent
#DC4C9E
background
#FAF7FD
surface
#F4EEFA
border
#CEC9D3
text
#100914
muted
#7F7B83