#7945C4#7945C4
#7945C4 is a mid, vivid violet. Relative luminance 0.123; OKLCH L 51.8% C 0.189 H 298.4°. Best body text is #FFFFFF at 6.07:1 contrast (WCAG AA passes).
Color values
| HEX | #7945C4 |
|---|---|
| RGB | rgb(121, 69, 196) |
| HSL | hsl(265, 52%, 52%) |
| HSV | hsv(265, 65%, 77%) |
| CMYK | cmyk(38.3%, 64.8%, 0%, 23.1%) |
| CIE-LAB | lab(41.70, 48.57, -58.37) |
| CIE-LCH | lch(41.70, 75.94, 309.76°) |
| OKLab | oklab(51.85% 0.0898 -0.1663) |
| OKLCH | oklch(51.85% 0.189 298.4) |
| XYZ | xyz(19.9746, 12.3064, 53.5369) |
| Luminance | 0.1231 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Bluey Purple
#6241C7
ΔE00 4.24
Bluish Purple
#703BE7
ΔE00 5.21
Blueviolet
#8A2BE2
ΔE00 5.57
Royal Purple
#7851A9
ΔE00 5.62
Darkorchid
#9932CC
ΔE00 6.03
Burple
#6832E3
ΔE00 6.05
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7945C4 #90C445
analogous
#4551C4 #7945C4 #B945C4
triadic
#7945C4 #C47945 #45C479
tetradic
#7945C4 #C44551 #90C445 #45C4B9
square
#7945C4 #C44551 #90C445 #45C4B9
split-complementary
#7945C4 #C4B945 #51C445
monochromatic
#41226C #5C319B #7945C4 #9A73D3 #BCA2E1
Accessibility & contrast
On white
6.07
#7945C4 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.46
#7945C4 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7945C4
6.07:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7945C4 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7945C4 | 1.00 | 6.07 | 3.46 | 6.07 |
| #FFFFFF | 6.07 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.46 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.07 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0063C8
Deuteranopia (green-blind)
#0061C1
Tritanopia (blue-blind)
#67627E
Achromatopsia (no color)
#626262
Design tokens & code
CSS
--color: #7945c4; /* rgb */ color: rgb(121, 69, 196); /* oklch */ color: oklch(51.8% 0.189 298.4);
Tailwind
colors: {
custom: {
50: '#a57cd7',
500: '#7945c4',
950: '#000000',
},
}SCSS
$custom: #7945c4; $custom-light: #a57cd7; $custom-dark: #000000;
JSON
{
"hex": "#7945c4",
"rgb": {
"r": 121,
"g": 69,
"b": 196
},
"hsl": {
"h": 264.567,
"s": 51.837,
"l": 51.961
},
"oklch": {
"l": 0.51849,
"c": 0.18896,
"h": 298.4
},
"luminance": 0.12307
}Semantic roles & 50–950 ramp
primary
#7945C4
secondary
#B7CE97
accent
#DB4DA1
background
#FAF7FD
surface
#F4EEFA
border
#CEC9D3
text
#100A14
muted
#7F7C83