#7945C5#7945C5
#7945C5 is a mid, vivid violet. Relative luminance 0.124; OKLCH L 51.9% C 0.190 H 298.1°. Best body text is #FFFFFF at 6.05:1 contrast (WCAG AA passes).
Color values
| HEX | #7945C5 |
|---|---|
| RGB | rgb(121, 69, 197) |
| HSL | hsl(264, 52%, 52%) |
| HSV | hsv(264, 65%, 77%) |
| CMYK | cmyk(38.6%, 65%, 0%, 22.7%) |
| CIE-LAB | lab(41.77, 48.82, -58.84) |
| CIE-LCH | lch(41.77, 76.46, 309.69°) |
| OKLab | oklab(51.92% 0.0896 -0.1676) |
| OKLCH | oklch(51.92% 0.19 298.1) |
| XYZ | xyz(20.0888, 12.3521, 54.1383) |
| Luminance | 0.1235 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Bluey Purple
#6241C7
ΔE00 4.20
Bluish Purple
#703BE7
ΔE00 5.07
Blueviolet
#8A2BE2
ΔE00 5.49
Royal Purple
#7851A9
ΔE00 5.74
Burple
#6832E3
ΔE00 5.95
Darkorchid
#9932CC
ΔE00 6.03
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7945C5 #91C545
analogous
#4551C5 #7945C5 #B945C5
triadic
#7945C5 #C57945 #45C579
tetradic
#7945C5 #C54551 #91C545 #45C5B9
square
#7945C5 #C54551 #91C545 #45C5B9
split-complementary
#7945C5 #C5B945 #51C545
monochromatic
#41226D #5C319C #7945C5 #9B74D4 #BCA2E2
Accessibility & contrast
On white
6.05
#7945C5 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.47
#7945C5 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7945C5
6.05:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7945C5 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7945C5 | 1.00 | 6.05 | 3.47 | 6.05 |
| #FFFFFF | 6.05 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.47 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.05 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0063C9
Deuteranopia (green-blind)
#0061C2
Tritanopia (blue-blind)
#67627F
Achromatopsia (no color)
#636363
Design tokens & code
CSS
--color: #7945c5; /* rgb */ color: rgb(121, 69, 197); /* oklch */ color: oklch(51.9% 0.190 298.1);
Tailwind
colors: {
custom: {
50: '#a57cd7',
500: '#7945c5',
950: '#000000',
},
}SCSS
$custom: #7945c5; $custom-light: #a57cd7; $custom-dark: #000000;
JSON
{
"hex": "#7945c5",
"rgb": {
"r": 121,
"g": 69,
"b": 197
},
"hsl": {
"h": 264.375,
"s": 52.459,
"l": 52.157
},
"oklch": {
"l": 0.51923,
"c": 0.19011,
"h": 298.1
},
"luminance": 0.12352
}Semantic roles & 50–950 ramp
primary
#7945C5
secondary
#B8CF97
accent
#DC4CA1
background
#FAF7FD
surface
#F4EEFA
border
#CEC9D3
text
#100A14
muted
#7F7C83