#7945BA#7945BA
#7945BA is a mid, vivid violet. Relative luminance 0.119; OKLCH L 51.1% C 0.177 H 300.7°. Best body text is #FFFFFF at 6.23:1 contrast (WCAG AA passes).
Color values
| HEX | #7945BA |
|---|---|
| RGB | rgb(121, 69, 186) |
| HSL | hsl(267, 46%, 50%) |
| HSV | hsv(267, 63%, 73%) |
| CMYK | cmyk(34.9%, 62.9%, 0%, 27.1%) |
| CIE-LAB | lab(41.00, 46.01, -53.66) |
| CIE-LCH | lch(41.00, 70.68, 310.61°) |
| OKLab | oklab(51.13% 0.0906 -0.1524) |
| OKLCH | oklch(51.13% 0.177 300.7) |
| XYZ | xyz(18.8741, 11.8662, 47.7409) |
| Luminance | 0.1187 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal Purple
#7851A9
ΔE00 4.50
Bluey Purple
#6241C7
ΔE00 4.93
Darkorchid
#9932CC
ΔE00 6.22
Blueviolet
#8A2BE2
ΔE00 6.59
Bluish Purple
#703BE7
ΔE00 6.66
Purply
#983FB2
ΔE00 6.72
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7945BA #86BA45
analogous
#454BBA #7945BA #B445BA
triadic
#7945BA #BA7945 #45BA79
tetradic
#7945BA #BA454B #86BA45 #45BAB4
square
#7945BA #BA454B #86BA45 #45BAB4
split-complementary
#7945BA #BAB445 #4BBA45
monochromatic
#3F2461 #5C348D #7945BA #9972CB #B99EDB
Accessibility & contrast
On white
6.23
#7945BA on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.37
#7945BA on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7945BA
6.23:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7945BA | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7945BA | 1.00 | 6.23 | 3.37 | 6.23 |
| #FFFFFF | 6.23 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.37 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.23 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0060BE
Deuteranopia (green-blind)
#1960B7
Tritanopia (blue-blind)
#6B5E79
Achromatopsia (no color)
#616161
Design tokens & code
CSS
--color: #7945ba; /* rgb */ color: rgb(121, 69, 186); /* oklch */ color: oklch(51.1% 0.177 300.7);
Tailwind
colors: {
custom: {
50: '#a47bcf',
500: '#7945ba',
950: '#000000',
},
}SCSS
$custom: #7945ba; $custom-light: #a47bcf; $custom-dark: #000000;
JSON
{
"hex": "#7945ba",
"rgb": {
"r": 121,
"g": 69,
"b": 186
},
"hsl": {
"h": 266.667,
"s": 45.882,
"l": 50
},
"oklch": {
"l": 0.51125,
"c": 0.1773,
"h": 300.7
},
"luminance": 0.11866
}Semantic roles & 50–950 ramp
primary
#7945BA
secondary
#B0C893
accent
#D6529B
background
#FAF7FC
surface
#F4EEF9
border
#CEC9D2
text
#100A14
muted
#7F7C82