#7A42BA#7A42BA
#7A42BA is a mid, vivid violet. Relative luminance 0.116; OKLCH L 50.8% C 0.182 H 301.7°. Best body text is #FFFFFF at 6.33:1 contrast (WCAG AA passes).
Color values
| HEX | #7A42BA |
|---|---|
| RGB | rgb(122, 66, 186) |
| HSL | hsl(268, 48%, 49%) |
| HSV | hsv(268, 65%, 73%) |
| CMYK | cmyk(34.4%, 64.5%, 0%, 27.1%) |
| CIE-LAB | lab(40.54, 47.80, -54.40) |
| CIE-LCH | lch(40.54, 72.42, 311.30°) |
| OKLab | oklab(50.82% 0.0954 -0.1546) |
| OKLCH | oklch(50.82% 0.182 301.7) |
| XYZ | xyz(18.8351, 11.5791, 47.6875) |
| Luminance | 0.1158 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Bluey Purple
#6241C7
ΔE00 5.00
Royal Purple
#7851A9
ΔE00 5.01
Darkorchid
#9932CC
ΔE00 5.83
Blueviolet
#8A2BE2
ΔE00 6.23
Purply
#983FB2
ΔE00 6.50
Bluish Purple
#703BE7
ΔE00 6.60
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7A42BA #82BA42
analogous
#4246BA #7A42BA #B642BA
triadic
#7A42BA #BA7A42 #42BA7A
tetradic
#7A42BA #BA4246 #82BA42 #42BAB6
square
#7A42BA #BA4246 #82BA42 #42BAB6
split-complementary
#7A42BA #BAB642 #46BA42
monochromatic
#3F2260 #5C328D #7A42BA #996ECB #B99BDB
Accessibility & contrast
On white
6.33
#7A42BA on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.32
#7A42BA on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7A42BA
6.33:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7A42BA | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7A42BA | 1.00 | 6.33 | 3.32 | 6.33 |
| #FFFFFF | 6.33 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.32 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.33 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005FBE
Deuteranopia (green-blind)
#135FB7
Tritanopia (blue-blind)
#6D5C78
Achromatopsia (no color)
#606060
Design tokens & code
CSS
--color: #7a42ba; /* rgb */ color: rgb(122, 66, 186); /* oklch */ color: oklch(50.8% 0.182 301.7);
Tailwind
colors: {
custom: {
50: '#a57acf',
500: '#7a42ba',
950: '#000000',
},
}SCSS
$custom: #7a42ba; $custom-light: #a57acf; $custom-dark: #000000;
JSON
{
"hex": "#7a42ba",
"rgb": {
"r": 122,
"g": 66,
"b": 186
},
"hsl": {
"h": 268,
"s": 47.619,
"l": 49.412
},
"oklch": {
"l": 0.50816,
"c": 0.18164,
"h": 301.7
},
"luminance": 0.11579
}Semantic roles & 50–950 ramp
primary
#7A42BA
secondary
#AEC890
accent
#D75198
background
#FAF7FC
surface
#F4EEF9
border
#CEC9D2
text
#100914
muted
#7F7B82