#7940C8#7940C8
#7940C8 is a mid, vivid violet. Relative luminance 0.119; OKLCH L 51.5% C 0.200 H 298.2°. Best body text is #FFFFFF at 6.21:1 contrast (WCAG AA passes).
Color values
| HEX | #7940C8 |
|---|---|
| RGB | rgb(121, 64, 200) |
| HSL | hsl(265, 55%, 52%) |
| HSV | hsv(265, 68%, 78%) |
| CMYK | cmyk(39.5%, 68%, 0%, 21.6%) |
| CIE-LAB | lab(41.06, 52.15, -61.74) |
| CIE-LCH | lch(41.06, 80.81, 310.19°) |
| OKLab | oklab(51.48% 0.0946 -0.1761) |
| OKLCH | oklch(51.48% 0.2 298.2) |
| XYZ | xyz(20.1412, 11.9016, 55.8685) |
| Luminance | 0.1190 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Bluey Purple
#6241C7
ΔE00 3.95
Bluish Purple
#703BE7
ΔE00 4.43
Blueviolet
#8A2BE2
ΔE00 4.63
Burple
#6832E3
ΔE00 5.05
Darkorchid
#9932CC
ΔE00 5.70
Purpley Blue
#5F34E7
ΔE00 5.95
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7940C8 #8FC840
analogous
#404BC8 #7940C8 #BD40C8
triadic
#7940C8 #C87940 #40C879
tetradic
#7940C8 #C8404B #8FC840 #40C8BD
square
#7940C8 #C8404B #8FC840 #40C8BD
split-complementary
#7940C8 #C8BD40 #4BC840
monochromatic
#40206E #5C2D9D #7940C8 #9A70D6 #BC9FE3
Accessibility & contrast
On white
6.21
#7940C8 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.38
#7940C8 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7940C8
6.21:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7940C8 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7940C8 | 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)
#0061CC
Deuteranopia (green-blind)
#005FC5
Tritanopia (blue-blind)
#66607F
Achromatopsia (no color)
#616161
Design tokens & code
CSS
--color: #7940c8; /* rgb */ color: rgb(121, 64, 200); /* oklch */ color: oklch(51.5% 0.200 298.2);
Tailwind
colors: {
custom: {
50: '#a679da',
500: '#7940c8',
950: '#000000',
},
}SCSS
$custom: #7940c8; $custom-light: #a679da; $custom-dark: #000000;
JSON
{
"hex": "#7940c8",
"rgb": {
"r": 121,
"g": 64,
"b": 200
},
"hsl": {
"h": 265.147,
"s": 55.285,
"l": 51.765
},
"oklch": {
"l": 0.51481,
"c": 0.19995,
"h": 298.2
},
"luminance": 0.11902
}Semantic roles & 50–950 ramp
primary
#7940C8
secondary
#B7D094
accent
#DF49A0
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100915
muted
#7F7B83