#7A52F2#7A52F2
#7A52F2 is a mid, highly saturated violet. Relative luminance 0.166; OKLCH L 57.3% C 0.227 H 288.6°. Best body text is #FFFFFF at 4.86:1 contrast (WCAG AA passes).
Color values
| HEX | #7A52F2 |
|---|---|
| RGB | rgb(122, 82, 242) |
| HSL | hsl(255, 86%, 64%) |
| HSV | hsv(255, 66%, 95%) |
| CMYK | cmyk(49.6%, 66.1%, 0%, 5.1%) |
| CIE-LAB | lab(47.73, 54.26, -74.83) |
| CIE-LCH | lch(47.73, 92.43, 305.95°) |
| OKLab | oklab(57.29% 0.0724 -0.2146) |
| OKLCH | oklch(57.29% 0.227 288.6) |
| XYZ | xyz(27.0657, 16.5818, 85.7617) |
| Luminance | 0.1658 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purpley
#8756E4
ΔE00 3.02
Light Indigo
#6D5ACF
ΔE00 5.43
Purpleish Blue
#6140EF
ΔE00 5.81
Slate Blue
#6A5ACD
ΔE00 5.91
Mediumslateblue
#7B68EE
ΔE00 5.92
Bluish Purple
#703BE7
ΔE00 5.97
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7A52F2 #CAF252
analogous
#527AF2 #7A52F2 #CA52F2
triadic
#7A52F2 #F27A52 #52F27A
tetradic
#7A52F2 #F2527A #CAF252 #52F2CA
square
#7A52F2 #F2527A #CAF252 #52F2CA
split-complementary
#7A52F2 #F2CA52 #7AF252
monochromatic
#390EBC #4E19EE #7A52F2 #A68BF6 #D2C4FB
Accessibility & contrast
On white
4.86
#7A52F2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.32
#7A52F2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7A52F2
4.86:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7A52F2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7A52F2 | 1.00 | 4.86 | 4.32 | 4.86 |
| #FFFFFF | 4.86 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.32 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.86 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0075F7
Deuteranopia (green-blind)
#006DEF
Tritanopia (blue-blind)
#4F7A9B
Achromatopsia (no color)
#717171
Design tokens & code
CSS
--color: #7a52f2; /* rgb */ color: rgb(122, 82, 242); /* oklch */ color: oklch(57.3% 0.227 288.6);
Tailwind
colors: {
custom: {
50: '#aa85f7',
500: '#7a52f2',
950: '#000000',
},
}SCSS
$custom: #7a52f2; $custom-light: #aa85f7; $custom-dark: #000000;
JSON
{
"hex": "#7a52f2",
"rgb": {
"r": 122,
"g": 82,
"b": 242
},
"hsl": {
"h": 255,
"s": 86.022,
"l": 63.529
},
"oklch": {
"l": 0.57286,
"c": 0.2265,
"h": 288.6
},
"luminance": 0.16583
}Semantic roles & 50–950 ramp
primary
#7A52F2
secondary
#DEECB4
accent
#E303AB
background
#FBF8FF
surface
#F6EFFF
border
#D0CAD7
text
#110B17
muted
#807C85