#7946B8#7946B8
#7946B8 is a mid, vivid violet. Relative luminance 0.119; OKLCH L 51.1% C 0.174 H 301.0°. Best body text is #FFFFFF at 6.21:1 contrast (WCAG AA passes).
Color values
| HEX | #7946B8 |
|---|---|
| RGB | rgb(121, 70, 184) |
| HSL | hsl(267, 45%, 50%) |
| HSV | hsv(267, 62%, 72%) |
| CMYK | cmyk(34.2%, 62%, 0%, 27.8%) |
| CIE-LAB | lab(41.07, 44.96, -52.38) |
| CIE-LCH | lch(41.07, 69.03, 310.64°) |
| OKLab | oklab(51.13% 0.0895 -0.1487) |
| OKLCH | oklch(51.13% 0.174 301) |
| XYZ | xyz(18.7250, 11.9059, 46.6497) |
| Luminance | 0.1191 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal Purple
#7851A9
ΔE00 4.10
Bluey Purple
#6241C7
ΔE00 5.19
Darkorchid
#9932CC
ΔE00 6.39
Purply
#983FB2
ΔE00 6.62
Blueviolet
#8A2BE2
ΔE00 6.95
Bluish Purple
#703BE7
ΔE00 7.03
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7946B8 #85B846
analogous
#464CB8 #7946B8 #B246B8
triadic
#7946B8 #B87946 #46B879
tetradic
#7946B8 #B8464C #85B846 #46B8B2
square
#7946B8 #B8464C #85B846 #46B8B2
split-complementary
#7946B8 #B8B246 #4CB846
monochromatic
#3F245F #5C358C #7946B8 #9972C9 #B99EDA
Accessibility & contrast
On white
6.21
#7946B8 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.38
#7946B8 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7946B8
6.21:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7946B8 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7946B8 | 1.00 | 6.21 | 3.38 | 6.21 |
| #FFFFFF | 6.21 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.38 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.21 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0060BC
Deuteranopia (green-blind)
#1F60B5
Tritanopia (blue-blind)
#6C5E78
Achromatopsia (no color)
#616161
Design tokens & code
CSS
--color: #7946b8; /* rgb */ color: rgb(121, 70, 184); /* oklch */ color: oklch(51.1% 0.174 301.0);
Tailwind
colors: {
custom: {
50: '#a47cce',
500: '#7946b8',
950: '#000000',
},
}SCSS
$custom: #7946b8; $custom-light: #a47cce; $custom-dark: #000000;
JSON
{
"hex": "#7946b8",
"rgb": {
"r": 121,
"g": 70,
"b": 184
},
"hsl": {
"h": 266.842,
"s": 44.882,
"l": 49.804
},
"oklch": {
"l": 0.51128,
"c": 0.17353,
"h": 301
},
"luminance": 0.11906
}Semantic roles & 50–950 ramp
primary
#7946B8
secondary
#B0C793
accent
#D5539B
background
#FAF7FC
surface
#F4EEF9
border
#CEC9D2
text
#100A14
muted
#7F7C82