#7A2BA5#7A2BA5
#7A2BA5 is a mid, vivid violet. Relative luminance 0.086; OKLCH L 46.5% C 0.189 H 310.6°. Best body text is #FFFFFF at 7.73:1 contrast (WCAG AA passes).
Color values
| HEX | #7A2BA5 |
|---|---|
| RGB | rgb(122, 43, 165) |
| HSL | hsl(279, 59%, 41%) |
| HSV | hsv(279, 74%, 65%) |
| CMYK | cmyk(26.1%, 73.9%, 0%, 35.3%) |
| CIE-LAB | lab(35.17, 53.68, -50.61) |
| CIE-LCH | lch(35.17, 73.78, 316.68°) |
| OKLab | oklab(46.5% 0.1229 -0.1433) |
| OKLCH | oklch(46.5% 0.189 310.6) |
| XYZ | xyz(15.6801, 8.5823, 36.4206) |
| Luminance | 0.0858 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purple (survey)
#7E1E9C
ΔE00 2.56
Rebeccapurple
#663399
ΔE00 4.03
Darkviolet
#9400D3
ΔE00 7.07
Darkmagenta
#8B008B
ΔE00 7.10
Purply
#983FB2
ΔE00 7.62
Darkorchid
#9932CC
ΔE00 7.83
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7A2BA5 #56A52B
analogous
#3D2BA5 #7A2BA5 #A52B93
triadic
#7A2BA5 #A57A2B #2BA57A
tetradic
#7A2BA5 #A53D2B #56A52B #2B93A5
square
#7A2BA5 #A53D2B #56A52B #2B93A5
split-complementary
#7A2BA5 #93A52B #2BA53D
monochromatic
#321244 #561E74 #7A2BA5 #9B40CD #B571DA
Accessibility & contrast
On white
7.73
#7A2BA5 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.72
#7A2BA5 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #7A2BA5
7.73:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7A2BA5 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7A2BA5 | 1.00 | 7.73 | 2.72 | 7.73 |
| #FFFFFF | 7.73 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.72 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.73 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004FA8
Deuteranopia (green-blind)
#1354A2
Tritanopia (blue-blind)
#744766
Achromatopsia (no color)
#535353
Design tokens & code
CSS
--color: #7a2ba5; /* rgb */ color: rgb(122, 43, 165); /* oklch */ color: oklch(46.5% 0.189 310.6);
Tailwind
colors: {
custom: {
50: '#a56cc0',
500: '#7a2ba5',
950: '#000000',
},
}SCSS
$custom: #7a2ba5; $custom-light: #a56cc0; $custom-dark: #000000;
JSON
{
"hex": "#7a2ba5",
"rgb": {
"r": 122,
"g": 43,
"b": 165
},
"hsl": {
"h": 278.852,
"s": 58.654,
"l": 40.784
},
"oklch": {
"l": 0.46501,
"c": 0.18879,
"h": 310.6
},
"luminance": 0.08582
}Semantic roles & 50–950 ramp
primary
#7A2BA5
secondary
#89C16B
accent
#E2467D
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100712
muted
#7F7A81