#7A45BA#7A45BA
#7A45BA is a mid, vivid violet. Relative luminance 0.119; OKLCH L 51.2% C 0.177 H 301.2°. Best body text is #FFFFFF at 6.20:1 contrast (WCAG AA passes).
Color values
| HEX | #7A45BA |
|---|---|
| RGB | rgb(122, 69, 186) |
| HSL | hsl(267, 46%, 50%) |
| HSV | hsv(267, 63%, 73%) |
| CMYK | cmyk(34.4%, 62.9%, 0%, 27.1%) |
| CIE-LAB | lab(41.12, 46.23, -53.47) |
| CIE-LCH | lch(41.12, 70.68, 310.85°) |
| OKLab | oklab(51.24% 0.0919 -0.1518) |
| OKLCH | oklch(51.24% 0.177 301.2) |
| XYZ | xyz(19.0150, 11.9389, 47.7475) |
| Luminance | 0.1194 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal Purple
#7851A9
ΔE00 4.47
Bluey Purple
#6241C7
ΔE00 5.11
Darkorchid
#9932CC
ΔE00 6.06
Purply
#983FB2
ΔE00 6.53
Blueviolet
#8A2BE2
ΔE00 6.55
Bluish Purple
#703BE7
ΔE00 6.73
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7A45BA #85BA45
analogous
#454BBA #7A45BA #B445BA
triadic
#7A45BA #BA7A45 #45BA7A
tetradic
#7A45BA #BA454B #85BA45 #45BAB4
square
#7A45BA #BA454B #85BA45 #45BAB4
split-complementary
#7A45BA #BAB445 #4BBA45
monochromatic
#3F2461 #5D348D #7A45BA #9A72CB #BA9EDB
Accessibility & contrast
On white
6.20
#7A45BA on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.39
#7A45BA on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7A45BA
6.20:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7A45BA | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7A45BA | 1.00 | 6.20 | 3.39 | 6.20 |
| #FFFFFF | 6.20 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.39 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.20 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0060BE
Deuteranopia (green-blind)
#1B60B7
Tritanopia (blue-blind)
#6D5E79
Achromatopsia (no color)
#616161
Design tokens & code
CSS
--color: #7a45ba; /* rgb */ color: rgb(122, 69, 186); /* oklch */ color: oklch(51.2% 0.177 301.2);
Tailwind
colors: {
custom: {
50: '#a57bcf',
500: '#7a45ba',
950: '#000000',
},
}SCSS
$custom: #7a45ba; $custom-light: #a57bcf; $custom-dark: #000000;
JSON
{
"hex": "#7a45ba",
"rgb": {
"r": 122,
"g": 69,
"b": 186
},
"hsl": {
"h": 267.179,
"s": 45.882,
"l": 50
},
"oklch": {
"l": 0.51235,
"c": 0.17748,
"h": 301.2
},
"luminance": 0.11939
}Semantic roles & 50–950 ramp
primary
#7A45BA
secondary
#B0C893
accent
#D6529A
background
#FAF7FC
surface
#F4EEF9
border
#CEC9D2
text
#100A14
muted
#7F7C82