#7A42B7#7A42B7
#7A42B7 is a mid, vivid violet. Relative luminance 0.115; OKLCH L 50.6% C 0.178 H 302.5°. Best body text is #FFFFFF at 6.38:1 contrast (WCAG AA passes).
Color values
| HEX | #7A42B7 |
|---|---|
| RGB | rgb(122, 66, 183) |
| HSL | hsl(269, 47%, 49%) |
| HSV | hsv(269, 64%, 72%) |
| CMYK | cmyk(33.3%, 63.9%, 0%, 28.2%) |
| CIE-LAB | lab(40.33, 47.05, -52.97) |
| CIE-LCH | lch(40.33, 70.85, 311.61°) |
| OKLab | oklab(50.6% 0.0957 -0.1504) |
| OKLCH | oklch(50.6% 0.178 302.5) |
| XYZ | xyz(18.5195, 11.4529, 46.0255) |
| Luminance | 0.1145 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal Purple
#7851A9
ΔE00 4.76
Bluey Purple
#6241C7
ΔE00 5.31
Darkorchid
#9932CC
ΔE00 5.97
Purply
#983FB2
ΔE00 6.31
Rebeccapurple
#663399
ΔE00 6.52
Blueviolet
#8A2BE2
ΔE00 6.61
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7A42B7 #7FB742
analogous
#4245B7 #7A42B7 #B542B7
triadic
#7A42B7 #B77A42 #42B77A
tetradic
#7A42B7 #B74245 #7FB742 #42B7B5
square
#7A42B7 #B74245 #7FB742 #42B7B5
split-complementary
#7A42B7 #B7B542 #45B742
monochromatic
#3E225D #5C328A #7A42B7 #996CCA #B899DA
Accessibility & contrast
On white
6.38
#7A42B7 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.29
#7A42B7 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7A42B7
6.38:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7A42B7 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7A42B7 | 1.00 | 6.38 | 3.29 | 6.38 |
| #FFFFFF | 6.38 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.29 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.38 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005EBB
Deuteranopia (green-blind)
#1A5FB4
Tritanopia (blue-blind)
#6E5B76
Achromatopsia (no color)
#5F5F5F
Design tokens & code
CSS
--color: #7a42b7; /* rgb */ color: rgb(122, 66, 183); /* oklch */ color: oklch(50.6% 0.178 302.5);
Tailwind
colors: {
custom: {
50: '#a57acd',
500: '#7a42b7',
950: '#000000',
},
}SCSS
$custom: #7a42b7; $custom-light: #a57acd; $custom-dark: #000000;
JSON
{
"hex": "#7a42b7",
"rgb": {
"r": 122,
"g": 66,
"b": 183
},
"hsl": {
"h": 268.718,
"s": 46.988,
"l": 48.824
},
"oklch": {
"l": 0.50601,
"c": 0.17821,
"h": 302.5
},
"luminance": 0.11453
}Semantic roles & 50–950 ramp
primary
#7A42B7
secondary
#ACC68F
accent
#D75197
background
#FAF7FC
surface
#F4EEF9
border
#CEC9D2
text
#100914
muted
#7F7B82