#7A4ABA#7A4ABA
#7A4ABA is a mid, vivid violet. Relative luminance 0.126; OKLCH L 52.0% C 0.170 H 300.3°. Best body text is #FFFFFF at 5.97:1 contrast (WCAG AA passes).
Color values
| HEX | #7A4ABA |
|---|---|
| RGB | rgb(122, 74, 186) |
| HSL | hsl(266, 45%, 51%) |
| HSV | hsv(266, 60%, 73%) |
| CMYK | cmyk(34.4%, 60.2%, 0%, 27.1%) |
| CIE-LAB | lab(42.12, 43.53, -51.85) |
| CIE-LCH | lch(42.12, 67.70, 310.02°) |
| OKLab | oklab(51.97% 0.0859 -0.1471) |
| OKLCH | oklch(51.97% 0.17 300.3) |
| XYZ | xyz(19.3356, 12.5802, 47.8544) |
| Luminance | 0.1258 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal Purple
#7851A9
ΔE00 3.65
Bluey Purple
#6241C7
ΔE00 5.52
Light Indigo
#6D5ACF
ΔE00 6.52
Darkorchid
#9932CC
ΔE00 6.64
Slate Blue
#6A5ACD
ΔE00 6.71
Purply
#983FB2
ΔE00 6.77
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7A4ABA #8ABA4A
analogous
#4A52BA #7A4ABA #B24ABA
triadic
#7A4ABA #BA7A4A #4ABA7A
tetradic
#7A4ABA #BA4A52 #8ABA4A #4ABAB2
square
#7A4ABA #BA4A52 #8ABA4A #4ABAB2
split-complementary
#7A4ABA #BAB24A #52BA4A
monochromatic
#402664 #5D3790 #7A4ABA #9B76CB #BBA3DC
Accessibility & contrast
On white
5.97
#7A4ABA on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.52
#7A4ABA on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7A4ABA
5.97:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7A4ABA | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7A4ABA | 1.00 | 5.97 | 3.52 | 5.97 |
| #FFFFFF | 5.97 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.52 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.97 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0463BE
Deuteranopia (green-blind)
#2563B7
Tritanopia (blue-blind)
#6C627B
Achromatopsia (no color)
#636363
Design tokens & code
CSS
--color: #7a4aba; /* rgb */ color: rgb(122, 74, 186); /* oklch */ color: oklch(52.0% 0.170 300.3);
Tailwind
colors: {
custom: {
50: '#a57fcf',
500: '#7a4aba',
950: '#000000',
},
}SCSS
$custom: #7a4aba; $custom-light: #a57fcf; $custom-dark: #000000;
JSON
{
"hex": "#7a4aba",
"rgb": {
"r": 122,
"g": 74,
"b": 186
},
"hsl": {
"h": 265.714,
"s": 44.8,
"l": 50.98
},
"oklch": {
"l": 0.51965,
"c": 0.17033,
"h": 300.3
},
"luminance": 0.1258
}Semantic roles & 50–950 ramp
primary
#7A4ABA
secondary
#B3C997
accent
#D5539D
background
#FAF7FC
surface
#F4EEF9
border
#CEC9D2
text
#100A14
muted
#7F7C82