#7945B9#7945B9
#7945B9 is a mid, vivid violet. Relative luminance 0.118; OKLCH L 51.1% C 0.176 H 301.0°. Best body text is #FFFFFF at 6.24:1 contrast (WCAG AA passes).
Color values
| HEX | #7945B9 |
|---|---|
| RGB | rgb(121, 69, 185) |
| HSL | hsl(267, 46%, 50%) |
| HSV | hsv(267, 63%, 73%) |
| CMYK | cmyk(34.6%, 62.7%, 0%, 27.5%) |
| CIE-LAB | lab(40.93, 45.75, -53.18) |
| CIE-LCH | lch(40.93, 70.15, 310.70°) |
| OKLab | oklab(51.05% 0.0906 -0.151) |
| OKLCH | oklch(51.05% 0.176 301) |
| XYZ | xyz(18.7681, 11.8239, 47.1830) |
| Luminance | 0.1182 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal Purple
#7851A9
ΔE00 4.39
Bluey Purple
#6241C7
ΔE00 5.03
Darkorchid
#9932CC
ΔE00 6.26
Purply
#983FB2
ΔE00 6.65
Blueviolet
#8A2BE2
ΔE00 6.71
Bluish Purple
#703BE7
ΔE00 6.82
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7945B9 #85B945
analogous
#454BB9 #7945B9 #B345B9
triadic
#7945B9 #B97945 #45B979
tetradic
#7945B9 #B9454B #85B945 #45B9B3
square
#7945B9 #B9454B #85B945 #45B9B3
split-complementary
#7945B9 #B9B345 #4BB945
monochromatic
#3F2460 #5C348C #7945B9 #9971CA #B99EDB
Accessibility & contrast
On white
6.24
#7945B9 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.36
#7945B9 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7945B9
6.24:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7945B9 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7945B9 | 1.00 | 6.24 | 3.36 | 6.24 |
| #FFFFFF | 6.24 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.36 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.24 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0060BD
Deuteranopia (green-blind)
#1B60B6
Tritanopia (blue-blind)
#6C5E78
Achromatopsia (no color)
#606060
Design tokens & code
CSS
--color: #7945b9; /* rgb */ color: rgb(121, 69, 185); /* oklch */ color: oklch(51.1% 0.176 301.0);
Tailwind
colors: {
custom: {
50: '#a47bcf',
500: '#7945b9',
950: '#000000',
},
}SCSS
$custom: #7945b9; $custom-light: #a47bcf; $custom-dark: #000000;
JSON
{
"hex": "#7945b9",
"rgb": {
"r": 121,
"g": 69,
"b": 185
},
"hsl": {
"h": 266.897,
"s": 45.669,
"l": 49.804
},
"oklch": {
"l": 0.51054,
"c": 0.17613,
"h": 301
},
"luminance": 0.11824
}Semantic roles & 50–950 ramp
primary
#7945B9
secondary
#B0C793
accent
#D5529B
background
#FAF7FC
surface
#F4EEF9
border
#CEC9D2
text
#100914
muted
#7F7B82