#7940C3#7940C3
#7940C3 is a mid, vivid violet. Relative luminance 0.117; OKLCH L 51.1% C 0.194 H 299.4°. Best body text is #FFFFFF at 6.30:1 contrast (WCAG AA passes).
Color values
| HEX | #7940C3 |
|---|---|
| RGB | rgb(121, 64, 195) |
| HSL | hsl(266, 52%, 51%) |
| HSV | hsv(266, 67%, 76%) |
| CMYK | cmyk(37.9%, 67.2%, 0%, 23.5%) |
| CIE-LAB | lab(40.69, 50.88, -59.43) |
| CIE-LCH | lch(40.69, 78.23, 310.57°) |
| OKLab | oklab(51.1% 0.0953 -0.1694) |
| OKLCH | oklch(51.1% 0.194 299.4) |
| XYZ | xyz(19.5664, 11.6717, 52.8412) |
| Luminance | 0.1167 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Bluey Purple
#6241C7
ΔE00 4.13
Blueviolet
#8A2BE2
ΔE00 5.09
Bluish Purple
#703BE7
ΔE00 5.14
Burple
#6832E3
ΔE00 5.59
Darkorchid
#9932CC
ΔE00 5.69
Royal Purple
#7851A9
ΔE00 6.22
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7940C3 #8AC340
analogous
#4048C3 #7940C3 #BA40C3
triadic
#7940C3 #C37940 #40C379
tetradic
#7940C3 #C34048 #8AC340 #40C3BA
square
#7940C3 #C34048 #8AC340 #40C3BA
split-complementary
#7940C3 #C3BA40 #48C340
monochromatic
#402168 #5C2F97 #7940C3 #9A6FD2 #BA9DE0
Accessibility & contrast
On white
6.30
#7940C3 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.33
#7940C3 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7940C3
6.30:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7940C3 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7940C3 | 1.00 | 6.30 | 3.33 | 6.30 |
| #FFFFFF | 6.30 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.33 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.30 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0060C7
Deuteranopia (green-blind)
#005FC0
Tritanopia (blue-blind)
#685F7C
Achromatopsia (no color)
#606060
Design tokens & code
CSS
--color: #7940c3; /* rgb */ color: rgb(121, 64, 195); /* oklch */ color: oklch(51.1% 0.194 299.4);
Tailwind
colors: {
custom: {
50: '#a579d6',
500: '#7940c3',
950: '#000000',
},
}SCSS
$custom: #7940c3; $custom-light: #a579d6; $custom-dark: #000000;
JSON
{
"hex": "#7940c3",
"rgb": {
"r": 121,
"g": 64,
"b": 195
},
"hsl": {
"h": 266.107,
"s": 52.191,
"l": 50.784
},
"oklch": {
"l": 0.511,
"c": 0.19433,
"h": 299.4
},
"luminance": 0.11672
}Semantic roles & 50–950 ramp
primary
#7940C3
secondary
#B3CC92
accent
#DC4C9D
background
#FAF7FD
surface
#F4EEFA
border
#CEC9D3
text
#100914
muted
#7F7B83