#7A51CD#7A51CD
#7A51CD is a mid, vivid violet. Relative luminance 0.144; OKLCH L 54.4% C 0.183 H 294.8°. Best body text is #FFFFFF at 5.40:1 contrast (WCAG AA passes).
Color values
| HEX | #7A51CD |
|---|---|
| RGB | rgb(122, 81, 205) |
| HSL | hsl(260, 55%, 56%) |
| HSV | hsv(260, 60%, 80%) |
| CMYK | cmyk(40.5%, 60.5%, 0%, 19.6%) |
| CIE-LAB | lab(44.84, 44.67, -58.49) |
| CIE-LCH | lch(44.84, 73.60, 307.37°) |
| OKLab | oklab(54.35% 0.0769 -0.1666) |
| OKLCH | oklch(54.35% 0.184 294.8) |
| XYZ | xyz(21.9850, 14.4297, 59.3727) |
| Luminance | 0.1443 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Light Indigo
#6D5ACF
ΔE00 3.70
Slate Blue
#6A5ACD
ΔE00 4.11
Purpley
#8756E4
ΔE00 4.30
Iris
#6258C4
ΔE00 5.21
Bluey Purple
#6241C7
ΔE00 5.90
Dark Periwinkle
#665FD1
ΔE00 5.91
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7A51CD #A4CD51
analogous
#5166CD #7A51CD #B851CD
triadic
#7A51CD #CD7A51 #51CD7A
tetradic
#7A51CD #CD5166 #A4CD51 #51CDB8
square
#7A51CD #CD5166 #A4CD51 #51CDB8
split-complementary
#7A51CD #CDB851 #66CD51
monochromatic
#42257F #5B32AF #7A51CD #9E81DB #C3B0E8
Accessibility & contrast
On white
5.40
#7A51CD on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.89
#7A51CD on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7A51CD
5.40:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7A51CD | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7A51CD | 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)
#006BD1
Deuteranopia (green-blind)
#0A68CA
Tritanopia (blue-blind)
#656D87
Achromatopsia (no color)
#6A6A6A
Design tokens & code
CSS
--color: #7a51cd; /* rgb */ color: rgb(122, 81, 205); /* oklch */ color: oklch(54.4% 0.183 294.8);
Tailwind
colors: {
custom: {
50: '#a684dd',
500: '#7a51cd',
950: '#000000',
},
}SCSS
$custom: #7a51cd; $custom-light: #a684dd; $custom-dark: #000000;
JSON
{
"hex": "#7a51cd",
"rgb": {
"r": 122,
"g": 81,
"b": 205
},
"hsl": {
"h": 259.839,
"s": 55.357,
"l": 56.078
},
"oklch": {
"l": 0.54353,
"c": 0.1835,
"h": 294.8
},
"luminance": 0.1443
}Semantic roles & 50–950 ramp
primary
#7A51CD
secondary
#C6D7A3
accent
#DF49AD
background
#FAF8FD
surface
#F4EFFB
border
#CECAD4
text
#100B15
muted
#7F7C83