#7B4DB2#7B4DB2
#7B4DB2 is a mid, vivid violet. Relative luminance 0.127; OKLCH L 52.0% C 0.156 H 302.3°. Best body text is #FFFFFF at 5.92:1 contrast (WCAG AA passes).
Color values
| HEX | #7B4DB2 |
|---|---|
| RGB | rgb(123, 77, 178) |
| HSL | hsl(267, 40%, 50%) |
| HSV | hsv(267, 57%, 70%) |
| CMYK | cmyk(30.9%, 56.7%, 0%, 30.2%) |
| CIE-LAB | lab(42.36, 40.07, -46.77) |
| CIE-LCH | lch(42.36, 61.59, 310.59°) |
| OKLab | oklab(52% 0.0835 -0.1321) |
| OKLCH | oklch(52% 0.156 302.3) |
| XYZ | xyz(18.8563, 12.7330, 43.5752) |
| Luminance | 0.1273 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal Purple
#7851A9
ΔE00 2.07
Deep Lavender
#8D5EB7
ΔE00 6.23
Purply
#983FB2
ΔE00 6.43
Bluey Purple
#6241C7
ΔE00 6.88
Light Indigo
#6D5ACF
ΔE00 7.14
Slate Blue
#6A5ACD
ΔE00 7.29
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7B4DB2 #84B24D
analogous
#4D51B2 #7B4DB2 #AE4DB2
triadic
#7B4DB2 #B27B4D #4DB27B
tetradic
#7B4DB2 #B24D51 #84B24D #4DB2AE
square
#7B4DB2 #B24D51 #84B24D #4DB2AE
split-complementary
#7B4DB2 #B2AE4D #51B24D
monochromatic
#40285D #5D3B87 #7B4DB2 #9B78C4 #BAA2D7
Accessibility & contrast
On white
5.92
#7B4DB2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.55
#7B4DB2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7B4DB2
5.92:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7B4DB2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7B4DB2 | 1.00 | 5.92 | 3.55 | 5.92 |
| #FFFFFF | 5.92 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.55 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.92 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#2363B5
Deuteranopia (green-blind)
#3564B0
Tritanopia (blue-blind)
#706178
Achromatopsia (no color)
#646464
Design tokens & code
CSS
--color: #7b4db2; /* rgb */ color: rgb(123, 77, 178); /* oklch */ color: oklch(52.0% 0.156 302.3);
Tailwind
colors: {
custom: {
50: '#a480c9',
500: '#7b4db2',
950: '#000000',
},
}SCSS
$custom: #7b4db2; $custom-light: #a480c9; $custom-dark: #000000;
JSON
{
"hex": "#7b4db2",
"rgb": {
"r": 123,
"g": 77,
"b": 178
},
"hsl": {
"h": 267.327,
"s": 39.608,
"l": 50
},
"oklch": {
"l": 0.52,
"c": 0.15631,
"h": 302.3
},
"luminance": 0.12733
}Semantic roles & 50–950 ramp
primary
#7B4DB2
secondary
#AFC497
accent
#CF5899
background
#FAF7FC
surface
#F4EEF8
border
#CEC9D1
text
#100A13
muted
#7F7C82