#7A5CD4#7A5CD4
#7A5CD4 is a mid, vivid violet. Relative luminance 0.165; OKLCH L 56.6% C 0.177 H 291.2°. Best body text is #FFFFFF at 4.87:1 contrast (WCAG AA passes).
Color values
| HEX | #7A5CD4 |
|---|---|
| RGB | rgb(122, 92, 212) |
| HSL | hsl(255, 58%, 60%) |
| HSV | hsv(255, 57%, 83%) |
| CMYK | cmyk(42.5%, 56.6%, 0%, 16.9%) |
| CIE-LAB | lab(47.68, 40.37, -57.93) |
| CIE-LCH | lch(47.68, 70.61, 304.87°) |
| OKLab | oklab(56.58% 0.064 -0.165) |
| OKLCH | oklch(56.58% 0.177 291.2) |
| XYZ | xyz(23.7336, 16.5446, 64.2175) |
| Luminance | 0.1655 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Light Indigo
#6D5ACF
ΔE00 2.56
Slate Blue
#6A5ACD
ΔE00 3.16
Purpley
#8756E4
ΔE00 3.39
Dark Periwinkle
#665FD1
ΔE00 4.00
Iris
#6258C4
ΔE00 5.04
Mediumslateblue
#7B68EE
ΔE00 5.41
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7A5CD4 #B6D45C
analogous
#5C7AD4 #7A5CD4 #B65CD4
triadic
#7A5CD4 #D47A5C #5CD47A
tetradic
#7A5CD4 #D45C7A #B6D45C #5CD4B6
square
#7A5CD4 #D45C7A #B6D45C #5CD4B6
split-complementary
#7A5CD4 #D4B65C #7AD45C
monochromatic
#402690 #5633C0 #7A5CD4 #A28CE1 #C9BDEE
Accessibility & contrast
On white
4.87
#7A5CD4 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.31
#7A5CD4 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7A5CD4
4.87:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7A5CD4 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7A5CD4 | 1.00 | 4.87 | 4.31 | 4.87 |
| #FFFFFF | 4.87 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.31 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.87 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#1573D8
Deuteranopia (green-blind)
#1F6FD1
Tritanopia (blue-blind)
#61768F
Achromatopsia (no color)
#717171
Design tokens & code
CSS
--color: #7a5cd4; /* rgb */ color: rgb(122, 92, 212); /* oklch */ color: oklch(56.6% 0.177 291.2);
Tailwind
colors: {
custom: {
50: '#a68be2',
500: '#7a5cd4',
950: '#000000',
},
}SCSS
$custom: #7a5cd4; $custom-light: #a68be2; $custom-dark: #000000;
JSON
{
"hex": "#7a5cd4",
"rgb": {
"r": 122,
"g": 92,
"b": 212
},
"hsl": {
"h": 255,
"s": 58.252,
"l": 59.608
},
"oklch": {
"l": 0.56582,
"c": 0.17693,
"h": 291.2
},
"luminance": 0.16545
}Semantic roles & 50–950 ramp
primary
#7A5CD4
secondary
#D2DDAF
accent
#E146BB
background
#FAF8FD
surface
#F4F0FB
border
#CECBD4
text
#100C15
muted
#7F7D83