#7A42B2#7A42B2
#7A42B2 is a mid, vivid violet. Relative luminance 0.112; OKLCH L 50.2% C 0.172 H 303.8°. Best body text is #FFFFFF at 6.46:1 contrast (WCAG AA passes).
Color values
| HEX | #7A42B2 |
|---|---|
| RGB | rgb(122, 66, 178) |
| HSL | hsl(270, 46%, 48%) |
| HSV | hsv(270, 63%, 70%) |
| CMYK | cmyk(31.5%, 62.9%, 0%, 30.2%) |
| CIE-LAB | lab(40.00, 45.82, -50.57) |
| CIE-LCH | lch(40.00, 68.24, 312.18°) |
| OKLab | oklab(50.25% 0.096 -0.1433) |
| OKLCH | oklch(50.25% 0.172 303.8) |
| XYZ | xyz(18.0083, 11.2484, 43.3333) |
| Luminance | 0.1125 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal Purple
#7851A9
ΔE00 4.41
Bluey Purple
#6241C7
ΔE00 5.90
Rebeccapurple
#663399
ΔE00 6.05
Purply
#983FB2
ΔE00 6.06
Darkorchid
#9932CC
ΔE00 6.27
Blueviolet
#8A2BE2
ΔE00 7.27
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7A42B2 #7AB242
analogous
#4242B2 #7A42B2 #B242B2
triadic
#7A42B2 #B27A42 #42B27A
tetradic
#7A42B2 #B24242 #7AB242 #42B2B2
square
#7A42B2 #B24242 #7AB242 #42B2B2
split-complementary
#7A42B2 #B2B242 #42B242
monochromatic
#3D2159 #5B3185 #7A42B2 #996AC8 #B796D8
Accessibility & contrast
On white
6.46
#7A42B2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.25
#7A42B2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7A42B2
6.46:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7A42B2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7A42B2 | 1.00 | 6.46 | 3.25 | 6.46 |
| #FFFFFF | 6.46 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.25 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.46 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005DB6
Deuteranopia (green-blind)
#235EAF
Tritanopia (blue-blind)
#705A74
Achromatopsia (no color)
#5E5E5E
Design tokens & code
CSS
--color: #7a42b2; /* rgb */ color: rgb(122, 66, 178); /* oklch */ color: oklch(50.2% 0.172 303.8);
Tailwind
colors: {
custom: {
50: '#a479ca',
500: '#7a42b2',
950: '#000000',
},
}SCSS
$custom: #7a42b2; $custom-light: #a479ca; $custom-dark: #000000;
JSON
{
"hex": "#7a42b2",
"rgb": {
"r": 122,
"g": 66,
"b": 178
},
"hsl": {
"h": 270,
"s": 45.902,
"l": 47.843
},
"oklch": {
"l": 0.50249,
"c": 0.17247,
"h": 303.8
},
"luminance": 0.11248
}Semantic roles & 50–950 ramp
primary
#7A42B2
secondary
#A8C48C
accent
#D65294
background
#FAF7FC
surface
#F4EEF8
border
#CEC9D1
text
#100913
muted
#7F7B82