#7B51AE#7B51AE
#7B51AE is a mid, vivid violet. Relative luminance 0.132; OKLCH L 52.4% C 0.145 H 302.5°. Best body text is #FFFFFF at 5.78:1 contrast (WCAG AA passes).
Color values
| HEX | #7B51AE |
|---|---|
| RGB | rgb(123, 81, 174) |
| HSL | hsl(267, 36%, 50%) |
| HSV | hsv(267, 53%, 68%) |
| CMYK | cmyk(29.3%, 53.4%, 0%, 31.8%) |
| CIE-LAB | lab(42.99, 36.79, -43.40) |
| CIE-LCH | lch(42.99, 56.90, 310.29°) |
| OKLab | oklab(52.39% 0.078 -0.1223) |
| OKLCH | oklch(52.39% 0.145 302.5) |
| XYZ | xyz(18.7491, 13.1518, 41.5870) |
| Luminance | 0.1315 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal Purple
#7851A9
ΔE00 0.98
Deep Lavender
#8D5EB7
ΔE00 5.38
Purply
#983FB2
ΔE00 6.88
Light Indigo
#6D5ACF
ΔE00 7.29
Slate Blue
#6A5ACD
ΔE00 7.41
Iris
#6258C4
ΔE00 7.46
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7B51AE #84AE51
analogous
#5155AE #7B51AE #AA51AE
triadic
#7B51AE #AE7B51 #51AE7B
tetradic
#7B51AE #AE5155 #84AE51 #51AEAA
square
#7B51AE #AE5155 #84AE51 #51AEAA
split-complementary
#7B51AE #AEAA51 #55AE51
monochromatic
#402A5A #5D3E84 #7B51AE #9B7BC1 #BAA5D5
Accessibility & contrast
On white
5.78
#7B51AE on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.63
#7B51AE on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7B51AE
5.78:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7B51AE | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7B51AE | 1.00 | 5.78 | 3.63 | 5.78 |
| #FFFFFF | 5.78 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.63 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.78 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#3065B1
Deuteranopia (green-blind)
#3D65AC
Tritanopia (blue-blind)
#716378
Achromatopsia (no color)
#666666
Design tokens & code
CSS
--color: #7b51ae; /* rgb */ color: rgb(123, 81, 174); /* oklch */ color: oklch(52.4% 0.145 302.5);
Tailwind
colors: {
custom: {
50: '#a483c7',
500: '#7b51ae',
950: '#000000',
},
}SCSS
$custom: #7b51ae; $custom-light: #a483c7; $custom-dark: #000000;
JSON
{
"hex": "#7b51ae",
"rgb": {
"r": 123,
"g": 81,
"b": 174
},
"hsl": {
"h": 267.097,
"s": 36.471,
"l": 50
},
"oklch": {
"l": 0.52389,
"c": 0.14505,
"h": 302.5
},
"luminance": 0.13152
}Semantic roles & 50–950 ramp
primary
#7B51AE
secondary
#AFC299
accent
#CC5B99
background
#FAF8FC
surface
#F4EFF8
border
#CECAD1
text
#0F0B13
muted
#7F7C82