#7A51CC#7A51CC
#7A51CC is a mid, vivid violet. Relative luminance 0.144; OKLCH L 54.3% C 0.182 H 295.0°. Best body text is #FFFFFF at 5.42:1 contrast (WCAG AA passes).
Color values
| HEX | #7A51CC |
|---|---|
| RGB | rgb(122, 81, 204) |
| HSL | hsl(260, 55%, 56%) |
| HSV | hsv(260, 60%, 80%) |
| CMYK | cmyk(40.2%, 60.3%, 0%, 20%) |
| CIE-LAB | lab(44.78, 44.40, -58.03) |
| CIE-LCH | lch(44.78, 73.07, 307.42°) |
| OKLab | oklab(54.28% 0.0769 -0.1652) |
| OKLCH | oklch(54.28% 0.182 295) |
| XYZ | xyz(21.8647, 14.3816, 58.7390) |
| Luminance | 0.1438 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Light Indigo
#6D5ACF
ΔE00 3.74
Slate Blue
#6A5ACD
ΔE00 4.14
Purpley
#8756E4
ΔE00 4.41
Iris
#6258C4
ΔE00 5.21
Bluey Purple
#6241C7
ΔE00 5.89
Royal Purple
#7851A9
ΔE00 5.91
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7A51CC #A3CC51
analogous
#5165CC #7A51CC #B751CC
triadic
#7A51CC #CC7A51 #51CC7A
tetradic
#7A51CC #CC5165 #A3CC51 #51CCB7
square
#7A51CC #CC5165 #A3CC51 #51CCB7
split-complementary
#7A51CC #CCB751 #65CC51
monochromatic
#42257E #5C33AD #7A51CC #9E80DA #C2B0E8
Accessibility & contrast
On white
5.42
#7A51CC on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.88
#7A51CC on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7A51CC
5.42:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7A51CC | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7A51CC | 1.00 | 5.42 | 3.88 | 5.42 |
| #FFFFFF | 5.42 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.88 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.42 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#006BD0
Deuteranopia (green-blind)
#0F68C9
Tritanopia (blue-blind)
#656C87
Achromatopsia (no color)
#6A6A6A
Design tokens & code
CSS
--color: #7a51cc; /* rgb */ color: rgb(122, 81, 204); /* oklch */ color: oklch(54.3% 0.182 295.0);
Tailwind
colors: {
custom: {
50: '#a684dc',
500: '#7a51cc',
950: '#000000',
},
}SCSS
$custom: #7a51cc; $custom-light: #a684dc; $custom-dark: #000000;
JSON
{
"hex": "#7a51cc",
"rgb": {
"r": 122,
"g": 81,
"b": 204
},
"hsl": {
"h": 260,
"s": 54.667,
"l": 55.882
},
"oklch": {
"l": 0.54282,
"c": 0.18227,
"h": 295
},
"luminance": 0.14382
}Semantic roles & 50–950 ramp
primary
#7A51CC
secondary
#C5D6A3
accent
#DE4AAD
background
#FAF8FD
surface
#F4EFFB
border
#CECAD4
text
#100B15
muted
#7F7C83