#7A5AF2#7A5AF2
#7A5AF2 is a mid, highly saturated violet. Relative luminance 0.179; OKLCH L 58.4% C 0.217 H 287.4°. Best body text is #FFFFFF at 4.59:1 contrast (WCAG AA passes).
Color values
| HEX | #7A5AF2 |
|---|---|
| RGB | rgb(122, 90, 242) |
| HSL | hsl(253, 85%, 65%) |
| HSV | hsv(253, 63%, 95%) |
| CMYK | cmyk(49.6%, 62.8%, 0%, 5.1%) |
| CIE-LAB | lab(49.33, 49.94, -72.23) |
| CIE-LCH | lch(49.33, 87.81, 304.66°) |
| OKLab | oklab(58.44% 0.0648 -0.207) |
| OKLCH | oklch(58.44% 0.217 287.4) |
| XYZ | xyz(27.7045, 17.8594, 85.9746) |
| Luminance | 0.1786 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purpley
#8756E4
ΔE00 3.21
Mediumslateblue
#7B68EE
ΔE00 3.89
Light Indigo
#6D5ACF
ΔE00 5.33
Slate Blue
#6A5ACD
ΔE00 5.82
Dark Periwinkle
#665FD1
ΔE00 5.84
Lighter Purple
#A55AF4
ΔE00 7.46
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7A5AF2 #D2F25A
analogous
#5A86F2 #7A5AF2 #C65AF2
triadic
#7A5AF2 #F27A5A #5AF27A
tetradic
#7A5AF2 #F25A86 #D2F25A #5AF2C6
square
#7A5AF2 #F25A86 #D2F25A #5AF2C6
split-complementary
#7A5AF2 #F2C65A #86F25A
monochromatic
#350FC2 #4C21EE #7A5AF2 #A893F6 #D5CBFB
Accessibility & contrast
On white
4.59
#7A5AF2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.57
#7A5AF2 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#FFFFFF on #7A5AF2
4.59:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7A5AF2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7A5AF2 | 1.00 | 4.59 | 4.57 | 4.59 |
| #FFFFFF | 4.59 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.57 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.59 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0079F7
Deuteranopia (green-blind)
#0071EF
Tritanopia (blue-blind)
#4F7F9E
Achromatopsia (no color)
#757575
Design tokens & code
CSS
--color: #7a5af2; /* rgb */ color: rgb(122, 90, 242); /* oklch */ color: oklch(58.4% 0.217 287.4);
Tailwind
colors: {
custom: {
50: '#a98af7',
500: '#7a5af2',
950: '#000000',
},
}SCSS
$custom: #7a5af2; $custom-light: #a98af7; $custom-dark: #000000;
JSON
{
"hex": "#7a5af2",
"rgb": {
"r": 122,
"g": 90,
"b": 242
},
"hsl": {
"h": 252.632,
"s": 85.393,
"l": 65.098
},
"oklch": {
"l": 0.5844,
"c": 0.21689,
"h": 287.4
},
"luminance": 0.17861
}Semantic roles & 50–950 ramp
primary
#7A5AF2
secondary
#E3EEBA
accent
#E204B3
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#110C17
muted
#807D85