#7340C2#7340C2
#7340C2 is a mid, vivid violet. Relative luminance 0.112; OKLCH L 50.4% C 0.192 H 296.9°. Best body text is #FFFFFF at 6.48:1 contrast (WCAG AA passes).
Color values
| HEX | #7340C2 |
|---|---|
| RGB | rgb(115, 64, 194) |
| HSL | hsl(264, 52%, 51%) |
| HSV | hsv(264, 67%, 76%) |
| CMYK | cmyk(40.7%, 67%, 0%, 23.9%) |
| CIE-LAB | lab(39.93, 49.43, -60.12) |
| CIE-LCH | lch(39.93, 77.83, 309.43°) |
| OKLab | oklab(50.37% 0.0871 -0.1716) |
| OKLCH | oklch(50.37% 0.192 296.9) |
| XYZ | xyz(18.6387, 11.2063, 52.2095) |
| Luminance | 0.1121 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Bluey Purple
#6241C7
ΔE00 3.12
Bluish Purple
#703BE7
ΔE00 4.97
Burple
#6832E3
ΔE00 5.16
Blurple
#5539CC
ΔE00 5.29
Blue With A Hint Of Purple
#533CC6
ΔE00 5.37
Blueviolet
#8A2BE2
ΔE00 5.67
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7340C2 #8FC240
analogous
#404EC2 #7340C2 #B440C2
triadic
#7340C2 #C27340 #40C273
tetradic
#7340C2 #C2404E #8FC240 #40C2B4
square
#7340C2 #C2404E #8FC240 #40C2B4
split-complementary
#7340C2 #C2B440 #4EC240
monochromatic
#3C2167 #573095 #7340C2 #956ED1 #B79DE0
Accessibility & contrast
On white
6.48
#7340C2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.24
#7340C2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7340C2
6.48:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7340C2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7340C2 | 1.00 | 6.48 | 3.24 | 6.48 |
| #FFFFFF | 6.48 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.24 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.48 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005FC6
Deuteranopia (green-blind)
#005CBF
Tritanopia (blue-blind)
#5F5F7C
Achromatopsia (no color)
#5E5E5E
Design tokens & code
CSS
--color: #7340c2; /* rgb */ color: rgb(115, 64, 194); /* oklch */ color: oklch(50.4% 0.192 296.9);
Tailwind
colors: {
custom: {
50: '#a178d5',
500: '#7340c2',
950: '#000000',
},
}SCSS
$custom: #7340c2; $custom-light: #a178d5; $custom-dark: #000000;
JSON
{
"hex": "#7340c2",
"rgb": {
"r": 115,
"g": 64,
"b": 194
},
"hsl": {
"h": 263.538,
"s": 51.587,
"l": 50.588
},
"oklch": {
"l": 0.50373,
"c": 0.19244,
"h": 296.9
},
"luminance": 0.11207
}Semantic roles & 50–950 ramp
primary
#7340C2
secondary
#B5CC92
accent
#DB4DA3
background
#FAF7FD
surface
#F4EDFA
border
#CEC8D3
text
#100914
muted
#7F7B83