#7A42BF#7A42BF
#7A42BF is a mid, vivid violet. Relative luminance 0.118; OKLCH L 51.2% C 0.187 H 300.5°. Best body text is #FFFFFF at 6.25:1 contrast (WCAG AA passes).
Color values
| HEX | #7A42BF |
|---|---|
| RGB | rgb(122, 66, 191) |
| HSL | hsl(267, 49%, 50%) |
| HSV | hsv(267, 65%, 75%) |
| CMYK | cmyk(36.1%, 65.4%, 0%, 25.1%) |
| CIE-LAB | lab(40.89, 49.06, -56.77) |
| CIE-LCH | lch(40.89, 75.03, 310.83°) |
| OKLab | oklab(51.18% 0.095 -0.1615) |
| OKLCH | oklch(51.18% 0.187 300.5) |
| XYZ | xyz(19.3759, 11.7954, 50.5361) |
| Luminance | 0.1180 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Bluey Purple
#6241C7
ΔE00 4.59
Royal Purple
#7851A9
ΔE00 5.48
Blueviolet
#8A2BE2
ΔE00 5.65
Darkorchid
#9932CC
ΔE00 5.68
Bluish Purple
#703BE7
ΔE00 5.85
Burple
#6832E3
ΔE00 6.36
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7A42BF #87BF42
analogous
#4248BF #7A42BF #B842BF
triadic
#7A42BF #BF7A42 #42BF7A
tetradic
#7A42BF #BF4248 #87BF42 #42BFB8
square
#7A42BF #BF4248 #87BF42 #42BFB8
split-complementary
#7A42BF #BFB842 #48BF42
monochromatic
#402265 #5D3292 #7A42BF #9A70CE #BA9DDE
Accessibility & contrast
On white
6.25
#7A42BF on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.36
#7A42BF on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7A42BF
6.25:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7A42BF | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7A42BF | 1.00 | 6.25 | 3.36 | 6.25 |
| #FFFFFF | 6.25 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.36 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.25 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0060C3
Deuteranopia (green-blind)
#0060BC
Tritanopia (blue-blind)
#6B5E7B
Achromatopsia (no color)
#606060
Design tokens & code
CSS
--color: #7a42bf; /* rgb */ color: rgb(122, 66, 191); /* oklch */ color: oklch(51.2% 0.187 300.5);
Tailwind
colors: {
custom: {
50: '#a57ad3',
500: '#7a42bf',
950: '#000000',
},
}SCSS
$custom: #7a42bf; $custom-light: #a57ad3; $custom-dark: #000000;
JSON
{
"hex": "#7a42bf",
"rgb": {
"r": 122,
"g": 66,
"b": 191
},
"hsl": {
"h": 266.88,
"s": 49.407,
"l": 50.392
},
"oklch": {
"l": 0.51179,
"c": 0.18735,
"h": 300.5
},
"luminance": 0.11796
}Semantic roles & 50–950 ramp
primary
#7A42BF
secondary
#B1CA93
accent
#D94F9B
background
#FAF7FD
surface
#F4EEFA
border
#CEC9D3
text
#100914
muted
#7F7B83