#7A42B5#7A42B5
#7A42B5 is a mid, vivid violet. Relative luminance 0.114; OKLCH L 50.5% C 0.176 H 303.0°. Best body text is #FFFFFF at 6.41:1 contrast (WCAG AA passes).
Color values
| HEX | #7A42B5 |
|---|---|
| RGB | rgb(122, 66, 181) |
| HSL | hsl(269, 47%, 48%) |
| HSV | hsv(269, 64%, 71%) |
| CMYK | cmyk(32.6%, 63.5%, 0%, 29%) |
| CIE-LAB | lab(40.20, 46.56, -52.01) |
| CIE-LCH | lch(40.20, 69.81, 311.83°) |
| OKLab | oklab(50.46% 0.0958 -0.1475) |
| OKLCH | oklch(50.46% 0.176 303) |
| XYZ | xyz(18.3128, 11.3702, 44.9370) |
| Luminance | 0.1137 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal Purple
#7851A9
ΔE00 4.60
Bluey Purple
#6241C7
ΔE00 5.53
Darkorchid
#9932CC
ΔE00 6.08
Purply
#983FB2
ΔE00 6.20
Rebeccapurple
#663399
ΔE00 6.32
Blueviolet
#8A2BE2
ΔE00 6.87
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7A42B5 #7DB542
analogous
#4243B5 #7A42B5 #B342B5
triadic
#7A42B5 #B57A42 #42B57A
tetradic
#7A42B5 #B54243 #7DB542 #42B5B3
square
#7A42B5 #B54243 #7DB542 #42B5B3
split-complementary
#7A42B5 #B5B342 #43B542
monochromatic
#3E215B #5C3288 #7A42B5 #996BC9 #B898D9
Accessibility & contrast
On white
6.41
#7A42B5 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.27
#7A42B5 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7A42B5
6.41:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7A42B5 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7A42B5 | 1.00 | 6.41 | 3.27 | 6.41 |
| #FFFFFF | 6.41 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.27 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.41 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005EB9
Deuteranopia (green-blind)
#1E5EB2
Tritanopia (blue-blind)
#6F5B75
Achromatopsia (no color)
#5F5F5F
Design tokens & code
CSS
--color: #7a42b5; /* rgb */ color: rgb(122, 66, 181); /* oklch */ color: oklch(50.5% 0.176 303.0);
Tailwind
colors: {
custom: {
50: '#a57acc',
500: '#7a42b5',
950: '#000000',
},
}SCSS
$custom: #7a42b5; $custom-light: #a57acc; $custom-dark: #000000;
JSON
{
"hex": "#7a42b5",
"rgb": {
"r": 122,
"g": 66,
"b": 181
},
"hsl": {
"h": 269.217,
"s": 46.559,
"l": 48.431
},
"oklch": {
"l": 0.5046,
"c": 0.17591,
"h": 303
},
"luminance": 0.1137
}Semantic roles & 50–950 ramp
primary
#7A42B5
secondary
#AAC58E
accent
#D65296
background
#FAF7FC
surface
#F4EEF9
border
#CEC9D2
text
#100913
muted
#7F7B82