#7B51B2#7B51B2
#7B51B2 is a mid, vivid violet. Relative luminance 0.133; OKLCH L 52.6% C 0.150 H 301.4°. Best body text is #FFFFFF at 5.73:1 contrast (WCAG AA passes).
Color values
| HEX | #7B51B2 |
|---|---|
| RGB | rgb(123, 81, 178) |
| HSL | hsl(266, 39%, 51%) |
| HSV | hsv(266, 54%, 70%) |
| CMYK | cmyk(30.9%, 54.5%, 0%, 30.2%) |
| CIE-LAB | lab(43.23, 37.81, -45.38) |
| CIE-LCH | lch(43.23, 59.06, 309.80°) |
| OKLab | oklab(52.64% 0.0782 -0.1281) |
| OKLCH | oklch(52.64% 0.15 301.4) |
| XYZ | xyz(19.1448, 13.3101, 43.6713) |
| Luminance | 0.1331 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal Purple
#7851A9
ΔE00 1.63
Deep Lavender
#8D5EB7
ΔE00 5.41
Light Indigo
#6D5ACF
ΔE00 6.66
Slate Blue
#6A5ACD
ΔE00 6.81
Iris
#6258C4
ΔE00 6.95
Purply
#983FB2
ΔE00 6.98
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7B51B2 #88B251
analogous
#5158B2 #7B51B2 #AB51B2
triadic
#7B51B2 #B27B51 #51B27B
tetradic
#7B51B2 #B25158 #88B251 #51B2AB
square
#7B51B2 #B25158 #88B251 #51B2AB
split-complementary
#7B51B2 #B2AB51 #58B251
monochromatic
#412A5F #5E3D89 #7B51B2 #9B7BC5 #BBA6D8
Accessibility & contrast
On white
5.73
#7B51B2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.66
#7B51B2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7B51B2
5.73:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7B51B2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7B51B2 | 1.00 | 5.73 | 3.66 | 5.73 |
| #FFFFFF | 5.73 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.66 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.73 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#2C66B5
Deuteranopia (green-blind)
#3A66B0
Tritanopia (blue-blind)
#70647A
Achromatopsia (no color)
#666666
Design tokens & code
CSS
--color: #7b51b2; /* rgb */ color: rgb(123, 81, 178); /* oklch */ color: oklch(52.6% 0.150 301.4);
Tailwind
colors: {
custom: {
50: '#a483c9',
500: '#7b51b2',
950: '#000000',
},
}SCSS
$custom: #7b51b2; $custom-light: #a483c9; $custom-dark: #000000;
JSON
{
"hex": "#7b51b2",
"rgb": {
"r": 123,
"g": 81,
"b": 178
},
"hsl": {
"h": 265.979,
"s": 38.645,
"l": 50.784
},
"oklch": {
"l": 0.5264,
"c": 0.15008,
"h": 301.4
},
"luminance": 0.1331
}Semantic roles & 50–950 ramp
primary
#7B51B2
secondary
#B2C59A
accent
#CF599C
background
#FAF8FC
surface
#F4EFF8
border
#CECAD1
text
#0F0B13
muted
#7F7C82