#7B51CD#7B51CD
#7B51CD is a mid, vivid violet. Relative luminance 0.145; OKLCH L 54.5% C 0.184 H 295.2°. Best body text is #FFFFFF at 5.38:1 contrast (WCAG AA passes).
Color values
| HEX | #7B51CD |
|---|---|
| RGB | rgb(123, 81, 205) |
| HSL | hsl(260, 55%, 56%) |
| HSV | hsv(260, 60%, 80%) |
| CMYK | cmyk(40%, 60.5%, 0%, 19.6%) |
| CIE-LAB | lab(44.95, 44.89, -58.32) |
| CIE-LCH | lch(44.95, 73.60, 307.58°) |
| OKLab | oklab(54.45% 0.0782 -0.1661) |
| OKLCH | oklch(54.45% 0.184 295.2) |
| XYZ | xyz(22.1274, 14.5031, 59.3793) |
| Luminance | 0.1450 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Light Indigo
#6D5ACF
ΔE00 3.83
Purpley
#8756E4
ΔE00 4.21
Slate Blue
#6A5ACD
ΔE00 4.26
Iris
#6258C4
ΔE00 5.38
Bluish Purple
#703BE7
ΔE00 6.01
Royal Purple
#7851A9
ΔE00 6.03
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7B51CD #A3CD51
analogous
#5165CD #7B51CD #B951CD
triadic
#7B51CD #CD7B51 #51CD7B
tetradic
#7B51CD #CD5165 #A3CD51 #51CDB9
square
#7B51CD #CD5165 #A3CD51 #51CDB9
split-complementary
#7B51CD #CDB951 #65CD51
monochromatic
#43257F #5C32AF #7B51CD #9F81DB #C3B0E8
Accessibility & contrast
On white
5.38
#7B51CD on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.90
#7B51CD on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7B51CD
5.38:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7B51CD | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7B51CD | 1.00 | 5.38 | 3.90 | 5.38 |
| #FFFFFF | 5.38 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.90 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.38 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#006BD1
Deuteranopia (green-blind)
#0E68CA
Tritanopia (blue-blind)
#666C87
Achromatopsia (no color)
#6A6A6A
Design tokens & code
CSS
--color: #7b51cd; /* rgb */ color: rgb(123, 81, 205); /* oklch */ color: oklch(54.5% 0.184 295.2);
Tailwind
colors: {
custom: {
50: '#a684dd',
500: '#7b51cd',
950: '#000000',
},
}SCSS
$custom: #7b51cd; $custom-light: #a684dd; $custom-dark: #000000;
JSON
{
"hex": "#7b51cd",
"rgb": {
"r": 123,
"g": 81,
"b": 205
},
"hsl": {
"h": 260.323,
"s": 55.357,
"l": 56.078
},
"oklch": {
"l": 0.54452,
"c": 0.18358,
"h": 295.2
},
"luminance": 0.14504
}Semantic roles & 50–950 ramp
primary
#7B51CD
secondary
#C5D7A3
accent
#DF49AC
background
#FAF8FD
surface
#F4EFFB
border
#CECAD4
text
#100B15
muted
#7F7C83