#7946C2#7946C2
#7946C2 is a mid, vivid violet. Relative luminance 0.123; OKLCH L 51.8% C 0.185 H 298.6°. Best body text is #FFFFFF at 6.06:1 contrast (WCAG AA passes).
Color values
| HEX | #7946C2 |
|---|---|
| RGB | rgb(121, 70, 194) |
| HSL | hsl(265, 50%, 52%) |
| HSV | hsv(265, 64%, 76%) |
| CMYK | cmyk(37.6%, 63.9%, 0%, 23.9%) |
| CIE-LAB | lab(41.75, 47.52, -57.13) |
| CIE-LCH | lch(41.75, 74.31, 309.76°) |
| OKLab | oklab(51.84% 0.0888 -0.1626) |
| OKLCH | oklch(51.84% 0.185 298.6) |
| XYZ | xyz(19.8105, 12.3401, 52.3666) |
| Luminance | 0.1234 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Bluey Purple
#6241C7
ΔE00 4.40
Royal Purple
#7851A9
ΔE00 5.26
Bluish Purple
#703BE7
ΔE00 5.56
Blueviolet
#8A2BE2
ΔE00 5.89
Darkorchid
#9932CC
ΔE00 6.13
Burple
#6832E3
ΔE00 6.39
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7946C2 #8FC246
analogous
#4651C2 #7946C2 #B746C2
triadic
#7946C2 #C27946 #46C279
tetradic
#7946C2 #C24651 #8FC246 #46C2B7
square
#7946C2 #C24651 #8FC246 #46C2B7
split-complementary
#7946C2 #C2B746 #51C246
monochromatic
#40236A #5C3299 #7946C2 #9A74D1 #BCA2E0
Accessibility & contrast
On white
6.06
#7946C2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.47
#7946C2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7946C2
6.06:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7946C2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7946C2 | 1.00 | 6.06 | 3.47 | 6.06 |
| #FFFFFF | 6.06 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.47 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.06 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0063C6
Deuteranopia (green-blind)
#0061BF
Tritanopia (blue-blind)
#68627E
Achromatopsia (no color)
#626262
Design tokens & code
CSS
--color: #7946c2; /* rgb */ color: rgb(121, 70, 194); /* oklch */ color: oklch(51.8% 0.185 298.6);
Tailwind
colors: {
custom: {
50: '#a57cd5',
500: '#7946c2',
950: '#000000',
},
}SCSS
$custom: #7946c2; $custom-light: #a57cd5; $custom-dark: #000000;
JSON
{
"hex": "#7946c2",
"rgb": {
"r": 121,
"g": 70,
"b": 194
},
"hsl": {
"h": 264.677,
"s": 50.407,
"l": 51.765
},
"oklch": {
"l": 0.51842,
"c": 0.18529,
"h": 298.6
},
"luminance": 0.1234
}Semantic roles & 50–950 ramp
primary
#7946C2
secondary
#B7CD97
accent
#DA4EA0
background
#FAF7FD
surface
#F4EEFA
border
#CEC9D3
text
#100A14
muted
#7F7C83