#7A52E2#7A52E2
#7A52E2 is a mid, highly saturated violet. Relative luminance 0.157; OKLCH L 56.0% C 0.208 H 291.0°. Best body text is #FFFFFF at 5.08:1 contrast (WCAG AA passes).
Color values
| HEX | #7A52E2 |
|---|---|
| RGB | rgb(122, 82, 226) |
| HSL | hsl(257, 71%, 60%) |
| HSV | hsv(257, 64%, 89%) |
| CMYK | cmyk(46%, 63.7%, 0%, 11.4%) |
| CIE-LAB | lab(46.53, 49.84, -67.76) |
| CIE-LCH | lch(46.53, 84.12, 306.34°) |
| OKLab | oklab(56.05% 0.0743 -0.1939) |
| OKLCH | oklch(56.05% 0.208 291) |
| XYZ | xyz(24.7669, 15.6623, 73.6549) |
| Luminance | 0.1566 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purpley
#8756E4
ΔE00 2.61
Light Indigo
#6D5ACF
ΔE00 3.99
Slate Blue
#6A5ACD
ΔE00 4.51
Bluish Purple
#703BE7
ΔE00 5.39
Dark Periwinkle
#665FD1
ΔE00 5.63
Purpleish Blue
#6140EF
ΔE00 5.65
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7A52E2 #BAE252
analogous
#5272E2 #7A52E2 #C252E2
triadic
#7A52E2 #E27A52 #52E27A
tetradic
#7A52E2 #E25272 #BAE252 #52E2C2
square
#7A52E2 #E25272 #BAE252 #52E2C2
split-complementary
#7A52E2 #E2C252 #72E252
monochromatic
#3F1B9F #5423D3 #7A52E2 #A286EB #CBBBF4
Accessibility & contrast
On white
5.08
#7A52E2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.13
#7A52E2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7A52E2
5.08:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7A52E2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7A52E2 | 1.00 | 5.08 | 4.13 | 5.08 |
| #FFFFFF | 5.08 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.13 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.08 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0071E7
Deuteranopia (green-blind)
#006BDF
Tritanopia (blue-blind)
#5A7493
Achromatopsia (no color)
#6E6E6E
Design tokens & code
CSS
--color: #7a52e2; /* rgb */ color: rgb(122, 82, 226); /* oklch */ color: oklch(56.0% 0.208 291.0);
Tailwind
colors: {
custom: {
50: '#a885ec',
500: '#7a52e2',
950: '#000000',
},
}SCSS
$custom: #7a52e2; $custom-light: #a885ec; $custom-dark: #000000;
JSON
{
"hex": "#7a52e2",
"rgb": {
"r": 122,
"g": 82,
"b": 226
},
"hsl": {
"h": 256.667,
"s": 71.287,
"l": 60.392
},
"oklch": {
"l": 0.56045,
"c": 0.20761,
"h": 291
},
"luminance": 0.15663
}Semantic roles & 50–950 ramp
primary
#7A52E2
secondary
#D4E3AC
accent
#D3129E
background
#FAF8FE
surface
#F5EFFD
border
#CFCAD5
text
#100B16
muted
#7F7C84