#7A2BA3#7A2BA3
#7A2BA3 is a mid, vivid violet. Relative luminance 0.085; OKLCH L 46.4% C 0.187 H 311.3°. Best body text is #FFFFFF at 7.77:1 contrast (WCAG AA passes).
Color values
| HEX | #7A2BA3 |
|---|---|
| RGB | rgb(122, 43, 163) |
| HSL | hsl(280, 58%, 40%) |
| HSV | hsv(280, 74%, 64%) |
| CMYK | cmyk(25.2%, 73.6%, 0%, 36.1%) |
| CIE-LAB | lab(35.02, 53.24, -49.64) |
| CIE-LCH | lch(35.02, 72.79, 317.00°) |
| OKLab | oklab(46.35% 0.1232 -0.1404) |
| OKLCH | oklch(46.35% 0.187 311.3) |
| XYZ | xyz(15.4995, 8.5101, 35.4693) |
| Luminance | 0.0851 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purple (survey)
#7E1E9C
ΔE00 2.34
Rebeccapurple
#663399
ΔE00 3.99
Darkmagenta
#8B008B
ΔE00 6.85
Darkviolet
#9400D3
ΔE00 7.33
Purply
#983FB2
ΔE00 7.64
Purple
#800080
ΔE00 7.76
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7A2BA3 #54A32B
analogous
#3E2BA3 #7A2BA3 #A32B90
triadic
#7A2BA3 #A37A2B #2BA37A
tetradic
#7A2BA3 #A33E2B #54A32B #2B90A3
square
#7A2BA3 #A33E2B #54A32B #2B90A3
split-complementary
#7A2BA3 #90A32B #2BA33E
monochromatic
#321142 #561E73 #7A2BA3 #9C3FCC #B56FD9
Accessibility & contrast
On white
7.77
#7A2BA3 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.70
#7A2BA3 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #7A2BA3
7.77:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7A2BA3 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7A2BA3 | 1.00 | 7.77 | 2.70 | 7.77 |
| #FFFFFF | 7.77 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.70 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.77 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004FA6
Deuteranopia (green-blind)
#1754A0
Tritanopia (blue-blind)
#754665
Achromatopsia (no color)
#525252
Design tokens & code
CSS
--color: #7a2ba3; /* rgb */ color: rgb(122, 43, 163); /* oklch */ color: oklch(46.4% 0.187 311.3);
Tailwind
colors: {
custom: {
50: '#a56cbf',
500: '#7a2ba3',
950: '#000000',
},
}SCSS
$custom: #7a2ba3; $custom-light: #a56cbf; $custom-dark: #000000;
JSON
{
"hex": "#7a2ba3",
"rgb": {
"r": 122,
"g": 43,
"b": 163
},
"hsl": {
"h": 279.5,
"s": 58.252,
"l": 40.392
},
"oklch": {
"l": 0.46354,
"c": 0.18684,
"h": 311.3
},
"luminance": 0.0851
}Semantic roles & 50–950 ramp
primary
#7A2BA3
secondary
#87C06A
accent
#E1467B
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100712
muted
#7F7A81