#7A42C2#7A42C2
#7A42C2 is a mid, vivid violet. Relative luminance 0.119; OKLCH L 51.4% C 0.191 H 299.7°. Best body text is #FFFFFF at 6.20:1 contrast (WCAG AA passes).
Color values
| HEX | #7A42C2 |
|---|---|
| RGB | rgb(122, 66, 194) |
| HSL | hsl(266, 51%, 51%) |
| HSV | hsv(266, 66%, 76%) |
| CMYK | cmyk(37.1%, 66%, 0%, 23.9%) |
| CIE-LAB | lab(41.10, 49.82, -58.17) |
| CIE-LCH | lch(41.10, 76.59, 310.58°) |
| OKLab | oklab(51.4% 0.0946 -0.1656) |
| OKLCH | oklch(51.4% 0.191 299.7) |
| XYZ | xyz(19.7095, 11.9289, 52.2926) |
| Luminance | 0.1193 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Bluey Purple
#6241C7
ΔE00 4.39
Blueviolet
#8A2BE2
ΔE00 5.34
Bluish Purple
#703BE7
ΔE00 5.41
Darkorchid
#9932CC
ΔE00 5.64
Royal Purple
#7851A9
ΔE00 5.79
Burple
#6832E3
ΔE00 6.01
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7A42C2 #8AC242
analogous
#424AC2 #7A42C2 #BA42C2
triadic
#7A42C2 #C27A42 #42C27A
tetradic
#7A42C2 #C2424A #8AC242 #42C2BA
square
#7A42C2 #C2424A #8AC242 #42C2BA
split-complementary
#7A42C2 #C2BA42 #4AC242
monochromatic
#402268 #5D3196 #7A42C2 #9B70D1 #BB9FE0
Accessibility & contrast
On white
6.20
#7A42C2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.39
#7A42C2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7A42C2
6.20:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7A42C2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7A42C2 | 1.00 | 6.20 | 3.39 | 6.20 |
| #FFFFFF | 6.20 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.39 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.20 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0061C6
Deuteranopia (green-blind)
#0060BF
Tritanopia (blue-blind)
#6A5F7C
Achromatopsia (no color)
#616161
Design tokens & code
CSS
--color: #7a42c2; /* rgb */ color: rgb(122, 66, 194); /* oklch */ color: oklch(51.4% 0.191 299.7);
Tailwind
colors: {
custom: {
50: '#a67ad5',
500: '#7a42c2',
950: '#000000',
},
}SCSS
$custom: #7a42c2; $custom-light: #a67ad5; $custom-dark: #000000;
JSON
{
"hex": "#7a42c2",
"rgb": {
"r": 122,
"g": 66,
"b": 194
},
"hsl": {
"h": 266.25,
"s": 51.2,
"l": 50.98
},
"oklch": {
"l": 0.514,
"c": 0.19077,
"h": 299.7
},
"luminance": 0.11929
}Semantic roles & 50–950 ramp
primary
#7A42C2
secondary
#B3CC94
accent
#DB4D9D
background
#FAF7FD
surface
#F4EEFA
border
#CEC9D3
text
#100914
muted
#7F7B83