#7945C2#7945C2
#7945C2 is a mid, vivid violet. Relative luminance 0.122; OKLCH L 51.7% C 0.187 H 298.8°. Best body text is #FFFFFF at 6.10:1 contrast (WCAG AA passes).
Color values
| HEX | #7945C2 |
|---|---|
| RGB | rgb(121, 69, 194) |
| HSL | hsl(265, 51%, 52%) |
| HSV | hsv(265, 64%, 76%) |
| CMYK | cmyk(37.6%, 64.4%, 0%, 23.9%) |
| CIE-LAB | lab(41.56, 48.05, -57.44) |
| CIE-LCH | lch(41.56, 74.89, 309.91°) |
| OKLab | oklab(51.7% 0.0899 -0.1635) |
| OKLCH | oklch(51.7% 0.187 298.8) |
| XYZ | xyz(19.7484, 12.2160, 52.3460) |
| Luminance | 0.1222 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Bluey Purple
#6241C7
ΔE00 4.34
Royal Purple
#7851A9
ΔE00 5.39
Bluish Purple
#703BE7
ΔE00 5.49
Blueviolet
#8A2BE2
ΔE00 5.75
Darkorchid
#9932CC
ΔE00 6.04
Burple
#6832E3
ΔE00 6.26
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7945C2 #8EC245
analogous
#4550C2 #7945C2 #B845C2
triadic
#7945C2 #C27945 #45C279
tetradic
#7945C2 #C24550 #8EC245 #45C2B8
square
#7945C2 #C24550 #8EC245 #45C2B8
split-complementary
#7945C2 #C2B845 #50C245
monochromatic
#40236A #5C3298 #7945C2 #9A73D1 #BBA1E0
Accessibility & contrast
On white
6.10
#7945C2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.44
#7945C2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7945C2
6.10:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7945C2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7945C2 | 1.00 | 6.10 | 3.44 | 6.10 |
| #FFFFFF | 6.10 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.44 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.10 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0062C6
Deuteranopia (green-blind)
#0061BF
Tritanopia (blue-blind)
#68617D
Achromatopsia (no color)
#626262
Design tokens & code
CSS
--color: #7945c2; /* rgb */ color: rgb(121, 69, 194); /* oklch */ color: oklch(51.7% 0.187 298.8);
Tailwind
colors: {
custom: {
50: '#a57cd5',
500: '#7945c2',
950: '#000000',
},
}SCSS
$custom: #7945c2; $custom-light: #a57cd5; $custom-dark: #000000;
JSON
{
"hex": "#7945c2",
"rgb": {
"r": 121,
"g": 69,
"b": 194
},
"hsl": {
"h": 264.96,
"s": 50.607,
"l": 51.569
},
"oklch": {
"l": 0.51702,
"c": 0.18663,
"h": 298.8
},
"luminance": 0.12216
}Semantic roles & 50–950 ramp
primary
#7945C2
secondary
#B6CD96
accent
#DA4EA0
background
#FAF7FD
surface
#F4EEFA
border
#CEC9D3
text
#100A14
muted
#7F7C83