#7A45B7#7A45B7
#7A45B7 is a mid, vivid violet. Relative luminance 0.118; OKLCH L 51.0% C 0.174 H 302.0°. Best body text is #FFFFFF at 6.25:1 contrast (WCAG AA passes).
Color values
| HEX | #7A45B7 |
|---|---|
| RGB | rgb(122, 69, 183) |
| HSL | hsl(268, 45%, 49%) |
| HSV | hsv(268, 62%, 72%) |
| CMYK | cmyk(33.3%, 62.3%, 0%, 28.2%) |
| CIE-LAB | lab(40.92, 45.47, -52.03) |
| CIE-LCH | lch(40.92, 69.10, 311.15°) |
| OKLab | oklab(51.02% 0.0921 -0.1476) |
| OKLCH | oklch(51.02% 0.174 302) |
| XYZ | xyz(18.6994, 11.8127, 46.0855) |
| Luminance | 0.1181 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal Purple
#7851A9
ΔE00 4.17
Bluey Purple
#6241C7
ΔE00 5.41
Darkorchid
#9932CC
ΔE00 6.19
Purply
#983FB2
ΔE00 6.34
Blueviolet
#8A2BE2
ΔE00 6.92
Rebeccapurple
#663399
ΔE00 6.95
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7A45B7 #82B745
analogous
#4549B7 #7A45B7 #B345B7
triadic
#7A45B7 #B77A45 #45B77A
tetradic
#7A45B7 #B74549 #82B745 #45B7B3
square
#7A45B7 #B74549 #82B745 #45B7B3
split-complementary
#7A45B7 #B7B345 #49B745
monochromatic
#3F235E #5C348B #7A45B7 #9970C9 #B99DDA
Accessibility & contrast
On white
6.25
#7A45B7 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.36
#7A45B7 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7A45B7
6.25:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7A45B7 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7A45B7 | 1.00 | 6.25 | 3.36 | 6.25 |
| #FFFFFF | 6.25 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.36 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.25 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0060BB
Deuteranopia (green-blind)
#2060B4
Tritanopia (blue-blind)
#6E5D77
Achromatopsia (no color)
#606060
Design tokens & code
CSS
--color: #7a45b7; /* rgb */ color: rgb(122, 69, 183); /* oklch */ color: oklch(51.0% 0.174 302.0);
Tailwind
colors: {
custom: {
50: '#a57bcd',
500: '#7a45b7',
950: '#000000',
},
}SCSS
$custom: #7a45b7; $custom-light: #a57bcd; $custom-dark: #000000;
JSON
{
"hex": "#7a45b7",
"rgb": {
"r": 122,
"g": 69,
"b": 183
},
"hsl": {
"h": 267.895,
"s": 45.238,
"l": 49.412
},
"oklch": {
"l": 0.51024,
"c": 0.17398,
"h": 302
},
"luminance": 0.11813
}Semantic roles & 50–950 ramp
primary
#7A45B7
secondary
#AEC692
accent
#D55398
background
#FAF7FC
surface
#F4EEF9
border
#CEC9D2
text
#100A13
muted
#7F7C82