#7B51CC#7B51CC
#7B51CC is a mid, vivid violet. Relative luminance 0.145; OKLCH L 54.4% C 0.182 H 295.4°. Best body text is #FFFFFF at 5.40:1 contrast (WCAG AA passes).
Color values
| HEX | #7B51CC |
|---|---|
| RGB | rgb(123, 81, 204) |
| HSL | hsl(260, 55%, 56%) |
| HSV | hsv(260, 60%, 80%) |
| CMYK | cmyk(39.7%, 60.3%, 0%, 20%) |
| CIE-LAB | lab(44.88, 44.62, -57.85) |
| CIE-LCH | lch(44.88, 73.06, 307.64°) |
| OKLab | oklab(54.38% 0.0783 -0.1647) |
| OKLCH | oklch(54.38% 0.182 295.4) |
| XYZ | xyz(22.0070, 14.4550, 58.7456) |
| Luminance | 0.1446 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Light Indigo
#6D5ACF
ΔE00 3.88
Slate Blue
#6A5ACD
ΔE00 4.29
Purpley
#8756E4
ΔE00 4.33
Iris
#6258C4
ΔE00 5.38
Royal Purple
#7851A9
ΔE00 5.88
Bluey Purple
#6241C7
ΔE00 6.02
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7B51CC #A2CC51
analogous
#5164CC #7B51CC #B951CC
triadic
#7B51CC #CC7B51 #51CC7B
tetradic
#7B51CC #CC5164 #A2CC51 #51CCB9
square
#7B51CC #CC5164 #A2CC51 #51CCB9
split-complementary
#7B51CC #CCB951 #64CC51
monochromatic
#43257E #5D33AD #7B51CC #9F80DA #C3B0E8
Accessibility & contrast
On white
5.40
#7B51CC on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.89
#7B51CC on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7B51CC
5.40:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7B51CC | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7B51CC | 1.00 | 5.40 | 3.89 | 5.40 |
| #FFFFFF | 5.40 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.89 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.40 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#006BD0
Deuteranopia (green-blind)
#1268C9
Tritanopia (blue-blind)
#676C87
Achromatopsia (no color)
#6A6A6A
Design tokens & code
CSS
--color: #7b51cc; /* rgb */ color: rgb(123, 81, 204); /* oklch */ color: oklch(54.4% 0.182 295.4);
Tailwind
colors: {
custom: {
50: '#a684dc',
500: '#7b51cc',
950: '#000000',
},
}SCSS
$custom: #7b51cc; $custom-light: #a684dc; $custom-dark: #000000;
JSON
{
"hex": "#7b51cc",
"rgb": {
"r": 123,
"g": 81,
"b": 204
},
"hsl": {
"h": 260.488,
"s": 54.667,
"l": 55.882
},
"oklch": {
"l": 0.54381,
"c": 0.18236,
"h": 295.4
},
"luminance": 0.14455
}Semantic roles & 50–950 ramp
primary
#7B51CC
secondary
#C4D6A3
accent
#DE4AAB
background
#FAF8FD
surface
#F4EFFB
border
#CECAD4
text
#100B15
muted
#7F7C83