#7B42BF#7B42BF
#7B42BF is a mid, vivid violet. Relative luminance 0.119; OKLCH L 51.3% C 0.188 H 300.9°. Best body text is #FFFFFF at 6.22:1 contrast (WCAG AA passes).
Color values
| HEX | #7B42BF |
|---|---|
| RGB | rgb(123, 66, 191) |
| HSL | hsl(267, 49%, 50%) |
| HSV | hsv(267, 65%, 75%) |
| CMYK | cmyk(35.6%, 65.4%, 0%, 25.1%) |
| CIE-LAB | lab(41.01, 49.27, -56.57) |
| CIE-LCH | lch(41.01, 75.02, 311.05°) |
| OKLab | oklab(51.29% 0.0963 -0.1609) |
| OKLCH | oklch(51.29% 0.188 300.9) |
| XYZ | xyz(19.5183, 11.8689, 50.5427) |
| Luminance | 0.1187 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Bluey Purple
#6241C7
ΔE00 4.77
Royal Purple
#7851A9
ΔE00 5.45
Darkorchid
#9932CC
ΔE00 5.52
Blueviolet
#8A2BE2
ΔE00 5.61
Bluish Purple
#703BE7
ΔE00 5.92
Burple
#6832E3
ΔE00 6.47
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7B42BF #86BF42
analogous
#4247BF #7B42BF #B942BF
triadic
#7B42BF #BF7B42 #42BF7B
tetradic
#7B42BF #BF4247 #86BF42 #42BFB9
square
#7B42BF #BF4247 #86BF42 #42BFB9
split-complementary
#7B42BF #BFB942 #47BF42
monochromatic
#402265 #5E3292 #7B42BF #9B70CE #BB9DDE
Accessibility & contrast
On white
6.22
#7B42BF on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.37
#7B42BF on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7B42BF
6.22:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7B42BF | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7B42BF | 1.00 | 6.22 | 3.37 | 6.22 |
| #FFFFFF | 6.22 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.37 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.22 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0060C3
Deuteranopia (green-blind)
#0360BC
Tritanopia (blue-blind)
#6C5E7B
Achromatopsia (no color)
#616161
Design tokens & code
CSS
--color: #7b42bf; /* rgb */ color: rgb(123, 66, 191); /* oklch */ color: oklch(51.3% 0.188 300.9);
Tailwind
colors: {
custom: {
50: '#a67ad3',
500: '#7b42bf',
950: '#000000',
},
}SCSS
$custom: #7b42bf; $custom-light: #a67ad3; $custom-dark: #000000;
JSON
{
"hex": "#7b42bf",
"rgb": {
"r": 123,
"g": 66,
"b": 191
},
"hsl": {
"h": 267.36,
"s": 49.407,
"l": 50.392
},
"oklch": {
"l": 0.5129,
"c": 0.18752,
"h": 300.9
},
"luminance": 0.11869
}Semantic roles & 50–950 ramp
primary
#7B42BF
secondary
#B1CA93
accent
#D94F9A
background
#FAF7FD
surface
#F4EEFA
border
#CEC9D3
text
#100914
muted
#7F7B83