#7945B7#7945B7
#7945B7 is a mid, vivid violet. Relative luminance 0.117; OKLCH L 50.9% C 0.174 H 301.5°. Best body text is #FFFFFF at 6.27:1 contrast (WCAG AA passes).
Color values
| HEX | #7945B7 |
|---|---|
| RGB | rgb(121, 69, 183) |
| HSL | hsl(267, 45%, 49%) |
| HSV | hsv(267, 62%, 72%) |
| CMYK | cmyk(33.9%, 62.3%, 0%, 28.2%) |
| CIE-LAB | lab(40.80, 45.24, -52.23) |
| CIE-LCH | lch(40.80, 69.10, 310.90°) |
| OKLab | oklab(50.91% 0.0908 -0.1482) |
| OKLCH | oklch(50.91% 0.174 301.5) |
| XYZ | xyz(18.5585, 11.7400, 46.0789) |
| Luminance | 0.1174 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal Purple
#7851A9
ΔE00 4.19
Bluey Purple
#6241C7
ΔE00 5.24
Darkorchid
#9932CC
ΔE00 6.34
Purply
#983FB2
ΔE00 6.53
Rebeccapurple
#663399
ΔE00 6.87
Blueviolet
#8A2BE2
ΔE00 6.95
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7945B7 #83B745
analogous
#454AB7 #7945B7 #B245B7
triadic
#7945B7 #B77945 #45B779
tetradic
#7945B7 #B7454A #83B745 #45B7B2
square
#7945B7 #B7454A #83B745 #45B7B2
split-complementary
#7945B7 #B7B245 #4AB745
monochromatic
#3E235E #5C348B #7945B7 #9970C9 #B99DDA
Accessibility & contrast
On white
6.27
#7945B7 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.35
#7945B7 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7945B7
6.27:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7945B7 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7945B7 | 1.00 | 6.27 | 3.35 | 6.27 |
| #FFFFFF | 6.27 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.35 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.27 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005FBB
Deuteranopia (green-blind)
#1F60B4
Tritanopia (blue-blind)
#6C5D77
Achromatopsia (no color)
#606060
Design tokens & code
CSS
--color: #7945b7; /* rgb */ color: rgb(121, 69, 183); /* oklch */ color: oklch(50.9% 0.174 301.5);
Tailwind
colors: {
custom: {
50: '#a47bcd',
500: '#7945b7',
950: '#000000',
},
}SCSS
$custom: #7945b7; $custom-light: #a47bcd; $custom-dark: #000000;
JSON
{
"hex": "#7945b7",
"rgb": {
"r": 121,
"g": 69,
"b": 183
},
"hsl": {
"h": 267.368,
"s": 45.238,
"l": 49.412
},
"oklch": {
"l": 0.50913,
"c": 0.17378,
"h": 301.5
},
"luminance": 0.1174
}Semantic roles & 50–950 ramp
primary
#7945B7
secondary
#AEC692
accent
#D5539A
background
#FAF7FC
surface
#F4EEF9
border
#CEC9D2
text
#100913
muted
#7F7B82