#7B5BB2#7B5BB2
#7B5BB2 is a mid, vivid violet. Relative luminance 0.149; OKLCH L 54.3% C 0.134 H 298.8°. Best body text is #FFFFFF at 5.27:1 contrast (WCAG AA passes).
Color values
| HEX | #7B5BB2 |
|---|---|
| RGB | rgb(123, 91, 178) |
| HSL | hsl(262, 36%, 53%) |
| HSV | hsv(262, 49%, 70%) |
| CMYK | cmyk(30.9%, 48.9%, 0%, 30.2%) |
| CIE-LAB | lab(45.51, 32.00, -41.75) |
| CIE-LCH | lch(45.51, 52.60, 307.47°) |
| OKLab | oklab(54.33% 0.0647 -0.1175) |
| OKLCH | oklch(54.33% 0.134 298.8) |
| XYZ | xyz(19.9434, 14.9073, 43.9375) |
| Luminance | 0.1491 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal Purple
#7851A9
ΔE00 3.28
Deep Lavender
#8D5EB7
ΔE00 4.03
Light Indigo
#6D5ACF
ΔE00 6.21
Slate Blue
#6A5ACD
ΔE00 6.34
Iris
#6258C4
ΔE00 6.65
Amethyst
#9B5FC0
ΔE00 7.00
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7B5BB2 #92B25B
analogous
#5B66B2 #7B5BB2 #A75BB2
triadic
#7B5BB2 #B27B5B #5BB27B
tetradic
#7B5BB2 #B25B66 #92B25B #5BB2A7
square
#7B5BB2 #B25B66 #92B25B #5BB2A7
split-complementary
#7B5BB2 #B2A75B #66B25B
monochromatic
#422F64 #5E428D #7B5BB2 #9D85C6 #BEAED9
Accessibility & contrast
On white
5.27
#7B5BB2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.98
#7B5BB2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7B5BB2
5.27:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7B5BB2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7B5BB2 | 1.00 | 5.27 | 3.98 | 5.27 |
| #FFFFFF | 5.27 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.98 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.27 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#3F6CB5
Deuteranopia (green-blind)
#466BB0
Tritanopia (blue-blind)
#706B7E
Achromatopsia (no color)
#6C6C6C
Design tokens & code
CSS
--color: #7b5bb2; /* rgb */ color: rgb(123, 91, 178); /* oklch */ color: oklch(54.3% 0.134 298.8);
Tailwind
colors: {
custom: {
50: '#a48ac9',
500: '#7b5bb2',
950: '#000000',
},
}SCSS
$custom: #7b5bb2; $custom-light: #a48ac9; $custom-dark: #000000;
JSON
{
"hex": "#7b5bb2",
"rgb": {
"r": 123,
"g": 91,
"b": 178
},
"hsl": {
"h": 262.069,
"s": 36.1,
"l": 52.745
},
"oklch": {
"l": 0.54334,
"c": 0.1341,
"h": 298.8
},
"luminance": 0.14907
}Semantic roles & 50–950 ramp
primary
#7B5BB2
secondary
#B9C7A2
accent
#CC5CA3
background
#FAF8FC
surface
#F4F0F8
border
#CECBD1
text
#0F0C13
muted
#7F7D82