#7B42E2#7B42E2
#7B42E2 is a mid, highly saturated violet. Relative luminance 0.136; OKLCH L 54.0% C 0.227 H 293.7°. Best body text is #FFFFFF at 5.65:1 contrast (WCAG AA passes).
Color values
| HEX | #7B42E2 |
|---|---|
| RGB | rgb(123, 66, 226) |
| HSL | hsl(261, 73%, 57%) |
| HSV | hsv(261, 71%, 89%) |
| CMYK | cmyk(45.6%, 70.8%, 0%, 11.4%) |
| CIE-LAB | lab(43.65, 58.21, -72.44) |
| CIE-LCH | lch(43.65, 92.93, 308.78°) |
| OKLab | oklab(54.01% 0.091 -0.2075) |
| OKLCH | oklch(54.01% 0.227 293.7) |
| XYZ | xyz(23.8403, 13.5977, 73.3053) |
| Luminance | 0.1360 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Bluish Purple
#703BE7
ΔE00 2.32
Blueviolet
#8A2BE2
ΔE00 3.96
Purpleish Blue
#6140EF
ΔE00 3.98
Burple
#6832E3
ΔE00 4.44
Purpley Blue
#5F34E7
ΔE00 5.07
Purpley
#8756E4
ΔE00 5.36
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7B42E2 #A9E242
analogous
#4259E2 #7B42E2 #CB42E2
triadic
#7B42E2 #E27B42 #42E27B
tetradic
#7B42E2 #E24259 #A9E242 #42E2CB
square
#7B42E2 #E24259 #A9E242 #42E2CB
split-complementary
#7B42E2 #E2CB42 #59E242
monochromatic
#431793 #5B1FC8 #7B42E2 #A077EA #C5ACF2
Accessibility & contrast
On white
5.65
#7B42E2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.72
#7B42E2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7B42E2
5.65:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7B42E2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7B42E2 | 1.00 | 5.65 | 3.72 | 5.65 |
| #FFFFFF | 5.65 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.72 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.65 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0069E7
Deuteranopia (green-blind)
#0064DF
Tritanopia (blue-blind)
#5D6B8E
Achromatopsia (no color)
#676767
Design tokens & code
CSS
--color: #7b42e2; /* rgb */ color: rgb(123, 66, 226); /* oklch */ color: oklch(54.0% 0.227 293.7);
Tailwind
colors: {
custom: {
50: '#aa7bec',
500: '#7b42e2',
950: '#000000',
},
}SCSS
$custom: #7b42e2; $custom-light: #aa7bec; $custom-dark: #000000;
JSON
{
"hex": "#7b42e2",
"rgb": {
"r": 123,
"g": 66,
"b": 226
},
"hsl": {
"h": 261.375,
"s": 73.394,
"l": 57.255
},
"oklch": {
"l": 0.54006,
"c": 0.22661,
"h": 293.7
},
"luminance": 0.13598
}Semantic roles & 50–950 ramp
primary
#7B42E2
secondary
#C9E09F
accent
#F038AE
background
#FBF7FE
surface
#F6EEFD
border
#D0C9D5
text
#110A16
muted
#807C84