#7A42BB#7A42BB
#7A42BB is a mid, vivid violet. Relative luminance 0.116; OKLCH L 50.9% C 0.183 H 301.4°. Best body text is #FFFFFF at 6.32:1 contrast (WCAG AA passes).
Color values
| HEX | #7A42BB |
|---|---|
| RGB | rgb(122, 66, 187) |
| HSL | hsl(268, 48%, 50%) |
| HSV | hsv(268, 65%, 73%) |
| CMYK | cmyk(34.8%, 64.7%, 0%, 26.7%) |
| CIE-LAB | lab(40.61, 48.05, -54.88) |
| CIE-LCH | lch(40.61, 72.94, 311.21°) |
| OKLab | oklab(50.89% 0.0953 -0.1559) |
| OKLCH | oklch(50.89% 0.183 301.4) |
| XYZ | xyz(18.9418, 11.6218, 48.2494) |
| Luminance | 0.1162 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Bluey Purple
#6241C7
ΔE00 4.91
Royal Purple
#7851A9
ΔE00 5.10
Darkorchid
#9932CC
ΔE00 5.79
Blueviolet
#8A2BE2
ΔE00 6.11
Bluish Purple
#703BE7
ΔE00 6.45
Purply
#983FB2
ΔE00 6.56
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7A42BB #83BB42
analogous
#4246BB #7A42BB #B742BB
triadic
#7A42BB #BB7A42 #42BB7A
tetradic
#7A42BB #BB4246 #83BB42 #42BBB7
square
#7A42BB #BB4246 #83BB42 #42BBB7
split-complementary
#7A42BB #BBB742 #46BB42
monochromatic
#3F2261 #5C328E #7A42BB #9A6ECC #B99CDC
Accessibility & contrast
On white
6.32
#7A42BB on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.32
#7A42BB on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7A42BB
6.32:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7A42BB | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7A42BB | 1.00 | 6.32 | 3.32 | 6.32 |
| #FFFFFF | 6.32 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.32 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.32 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005FBF
Deuteranopia (green-blind)
#105FB8
Tritanopia (blue-blind)
#6C5D79
Achromatopsia (no color)
#606060
Design tokens & code
CSS
--color: #7a42bb; /* rgb */ color: rgb(122, 66, 187); /* oklch */ color: oklch(50.9% 0.183 301.4);
Tailwind
colors: {
custom: {
50: '#a57ad0',
500: '#7a42bb',
950: '#000000',
},
}SCSS
$custom: #7a42bb; $custom-light: #a57ad0; $custom-dark: #000000;
JSON
{
"hex": "#7a42bb",
"rgb": {
"r": 122,
"g": 66,
"b": 187
},
"hsl": {
"h": 267.769,
"s": 47.826,
"l": 49.608
},
"oklch": {
"l": 0.50888,
"c": 0.18278,
"h": 301.4
},
"luminance": 0.11622
}Semantic roles & 50–950 ramp
primary
#7A42BB
secondary
#AEC891
accent
#D75099
background
#FAF7FC
surface
#F4EEF9
border
#CEC9D2
text
#100914
muted
#7F7B82