#7946B4#7946B4
#7946B4 is a mid, vivid violet. Relative luminance 0.117; OKLCH L 50.8% C 0.169 H 302.1°. Best body text is #FFFFFF at 6.27:1 contrast (WCAG AA passes).
Color values
| HEX | #7946B4 |
|---|---|
| RGB | rgb(121, 70, 180) |
| HSL | hsl(268, 44%, 49%) |
| HSV | hsv(268, 61%, 71%) |
| CMYK | cmyk(32.8%, 61.1%, 0%, 29.4%) |
| CIE-LAB | lab(40.80, 43.95, -50.46) |
| CIE-LCH | lch(40.80, 66.91, 311.06°) |
| OKLab | oklab(50.85% 0.0897 -0.143) |
| OKLCH | oklch(50.85% 0.169 302.1) |
| XYZ | xyz(18.3116, 11.7405, 44.4726) |
| Luminance | 0.1174 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal Purple
#7851A9
ΔE00 3.71
Bluey Purple
#6241C7
ΔE00 5.64
Purply
#983FB2
ΔE00 6.40
Darkorchid
#9932CC
ΔE00 6.60
Rebeccapurple
#663399
ΔE00 6.76
Blueviolet
#8A2BE2
ΔE00 7.44
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7946B4 #81B446
analogous
#464AB4 #7946B4 #B046B4
triadic
#7946B4 #B47946 #46B479
tetradic
#7946B4 #B4464A #81B446 #46B4B0
square
#7946B4 #B4464A #81B446 #46B4B0
split-complementary
#7946B4 #B4B046 #4AB446
monochromatic
#3E245C #5B3588 #7946B4 #9870C7 #B89CD8
Accessibility & contrast
On white
6.27
#7946B4 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.35
#7946B4 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7946B4
6.27:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7946B4 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7946B4 | 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)
#005FB8
Deuteranopia (green-blind)
#2560B2
Tritanopia (blue-blind)
#6D5D76
Achromatopsia (no color)
#606060
Design tokens & code
CSS
--color: #7946b4; /* rgb */ color: rgb(121, 70, 180); /* oklch */ color: oklch(50.8% 0.169 302.1);
Tailwind
colors: {
custom: {
50: '#a47ccb',
500: '#7946b4',
950: '#000000',
},
}SCSS
$custom: #7946b4; $custom-light: #a47ccb; $custom-dark: #000000;
JSON
{
"hex": "#7946b4",
"rgb": {
"r": 121,
"g": 70,
"b": 180
},
"hsl": {
"h": 267.818,
"s": 44,
"l": 49.02
},
"oklch": {
"l": 0.5085,
"c": 0.16881,
"h": 302.1
},
"luminance": 0.11741
}Semantic roles & 50–950 ramp
primary
#7946B4
secondary
#ADC591
accent
#D45499
background
#FAF7FC
surface
#F4EEF9
border
#CEC9D2
text
#100A13
muted
#7F7C82