#7B51CA#7B51CA
#7B51CA is a mid, vivid violet. Relative luminance 0.144; OKLCH L 54.2% C 0.180 H 295.8°. Best body text is #FFFFFF at 5.42:1 contrast (WCAG AA passes).
Color values
| HEX | #7B51CA |
|---|---|
| RGB | rgb(123, 81, 202) |
| HSL | hsl(261, 53%, 55%) |
| HSV | hsv(261, 60%, 79%) |
| CMYK | cmyk(39.1%, 59.9%, 0%, 20.8%) |
| CIE-LAB | lab(44.74, 44.09, -56.92) |
| CIE-LCH | lch(44.74, 71.99, 307.76°) |
| OKLab | oklab(54.24% 0.0784 -0.1619) |
| OKLCH | oklch(54.24% 0.18 295.8) |
| XYZ | xyz(21.7687, 14.3597, 57.4904) |
| Luminance | 0.1436 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Light Indigo
#6D5ACF
ΔE00 3.98
Slate Blue
#6A5ACD
ΔE00 4.37
Purpley
#8756E4
ΔE00 4.57
Iris
#6258C4
ΔE00 5.38
Royal Purple
#7851A9
ΔE00 5.58
Bluey Purple
#6241C7
ΔE00 6.02
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7B51CA #A0CA51
analogous
#5164CA #7B51CA #B751CA
triadic
#7B51CA #CA7B51 #51CA7B
tetradic
#7B51CA #CA5164 #A0CA51 #51CAB7
square
#7B51CA #CA5164 #A0CA51 #51CAB7
split-complementary
#7B51CA #CAB751 #64CA51
monochromatic
#43257B #5D34AA #7B51CA #9F80D8 #C2AFE7
Accessibility & contrast
On white
5.42
#7B51CA on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.87
#7B51CA on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7B51CA
5.42:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7B51CA | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7B51CA | 1.00 | 5.42 | 3.87 | 5.42 |
| #FFFFFF | 5.42 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.87 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.42 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#006BCE
Deuteranopia (green-blind)
#1868C7
Tritanopia (blue-blind)
#676B86
Achromatopsia (no color)
#6A6A6A
Design tokens & code
CSS
--color: #7b51ca; /* rgb */ color: rgb(123, 81, 202); /* oklch */ color: oklch(54.2% 0.180 295.8);
Tailwind
colors: {
custom: {
50: '#a684db',
500: '#7b51ca',
950: '#000000',
},
}SCSS
$custom: #7b51ca; $custom-light: #a684db; $custom-dark: #000000;
JSON
{
"hex": "#7b51ca",
"rgb": {
"r": 123,
"g": 81,
"b": 202
},
"hsl": {
"h": 260.826,
"s": 53.304,
"l": 55.49
},
"oklch": {
"l": 0.54241,
"c": 0.17991,
"h": 295.8
},
"luminance": 0.1436
}Semantic roles & 50–950 ramp
primary
#7B51CA
secondary
#C3D5A2
accent
#DD4BAA
background
#FAF8FD
surface
#F4EFFB
border
#CECAD4
text
#100B15
muted
#7F7C83