#7A5EF2#7A5EF2
#7A5EF2 is a mid, highly saturated violet. Relative luminance 0.186; OKLCH L 59.0% C 0.212 H 286.7°. Best body text is #000000 at 4.71:1 contrast (WCAG AA passes).
Color values
| HEX | #7A5EF2 |
|---|---|
| RGB | rgb(122, 94, 242) |
| HSL | hsl(251, 85%, 66%) |
| HSV | hsv(251, 61%, 95%) |
| CMYK | cmyk(49.6%, 61.2%, 0%, 5.1%) |
| CIE-LAB | lab(50.16, 47.72, -70.87) |
| CIE-LCH | lch(50.16, 85.44, 303.96°) |
| OKLab | oklab(59.05% 0.0608 -0.203) |
| OKLCH | oklch(59.05% 0.212 286.7) |
| XYZ | xyz(28.0510, 18.5525, 86.0901) |
| Luminance | 0.1855 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Mediumslateblue
#7B68EE
ΔE00 2.82
Purpley
#8756E4
ΔE00 3.79
Light Indigo
#6D5ACF
ΔE00 5.59
Dark Periwinkle
#665FD1
ΔE00 5.77
Slate Blue
#6A5ACD
ΔE00 6.06
Lighter Purple
#A55AF4
ΔE00 7.43
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7A5EF2 #D6F25E
analogous
#5E8CF2 #7A5EF2 #C45EF2
triadic
#7A5EF2 #F27A5E #5EF27A
tetradic
#7A5EF2 #F25E8C #D6F25E #5EF2C4
square
#7A5EF2 #F25E8C #D6F25E #5EF2C4
split-complementary
#7A5EF2 #F2C45E #8CF25E
monochromatic
#3210C6 #4B25ED #7A5EF2 #A997F7 #D8CFFB
Accessibility & contrast
On white
4.46
#7A5EF2 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.71
#7A5EF2 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #7A5EF2
4.71:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7A5EF2 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##7A5EF2 | 1.00 | 4.46 | 4.71 | 4.71 |
| #FFFFFF | 4.46 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.71 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.71 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#007BF7
Deuteranopia (green-blind)
#0073EF
Tritanopia (blue-blind)
#4E819F
Achromatopsia (no color)
#777777
Design tokens & code
CSS
--color: #7a5ef2; /* rgb */ color: rgb(122, 94, 242); /* oklch */ color: oklch(59.0% 0.212 286.7);
Tailwind
colors: {
custom: {
50: '#a98df7',
500: '#7a5ef2',
950: '#000000',
},
}SCSS
$custom: #7a5ef2; $custom-light: #a98df7; $custom-dark: #000000;
JSON
{
"hex": "#7a5ef2",
"rgb": {
"r": 122,
"g": 94,
"b": 242
},
"hsl": {
"h": 251.351,
"s": 85.057,
"l": 65.882
},
"oklch": {
"l": 0.59047,
"c": 0.21191,
"h": 286.7
},
"luminance": 0.18554
}Semantic roles & 50–950 ramp
primary
#7A5EF2
secondary
#E5EEBD
accent
#E204B8
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#110C17
muted
#807D85