#7945CB#7945CB
#7945CB is a mid, vivid violet. Relative luminance 0.126; OKLCH L 52.4% C 0.197 H 296.8°. Best body text is #FFFFFF at 5.95:1 contrast (WCAG AA passes).
Color values
| HEX | #7945CB |
|---|---|
| RGB | rgb(121, 69, 203) |
| HSL | hsl(263, 56%, 53%) |
| HSV | hsv(263, 66%, 80%) |
| CMYK | cmyk(40.4%, 66%, 0%, 20.4%) |
| CIE-LAB | lab(42.20, 50.38, -61.62) |
| CIE-LCH | lch(42.20, 79.59, 309.27°) |
| OKLab | oklab(52.37% 0.089 -0.1758) |
| OKLCH | oklch(52.37% 0.197 296.8) |
| XYZ | xyz(20.7900, 12.6326, 57.8313) |
| Luminance | 0.1263 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Bluey Purple
#6241C7
ΔE00 4.11
Bluish Purple
#703BE7
ΔE00 4.30
Blueviolet
#8A2BE2
ΔE00 5.04
Burple
#6832E3
ΔE00 5.41
Purpleish Blue
#6140EF
ΔE00 5.90
Darkorchid
#9932CC
ΔE00 6.10
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7945CB #97CB45
analogous
#4554CB #7945CB #BC45CB
triadic
#7945CB #CB7945 #45CB79
tetradic
#7945CB #CB4554 #97CB45 #45CBBC
square
#7945CB #CB4554 #97CB45 #45CBBC
split-complementary
#7945CB #CBBC45 #54CB45
monochromatic
#412175 #5C2EA5 #7945CB #9B75D8 #BEA5E6
Accessibility & contrast
On white
5.95
#7945CB on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.53
#7945CB on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7945CB
5.95:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7945CB | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7945CB | 1.00 | 5.95 | 3.53 | 5.95 |
| #FFFFFF | 5.95 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.53 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.95 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0064CF
Deuteranopia (green-blind)
#0062C8
Tritanopia (blue-blind)
#646482
Achromatopsia (no color)
#646464
Design tokens & code
CSS
--color: #7945cb; /* rgb */ color: rgb(121, 69, 203); /* oklch */ color: oklch(52.4% 0.197 296.8);
Tailwind
colors: {
custom: {
50: '#a67cdc',
500: '#7945cb',
950: '#000000',
},
}SCSS
$custom: #7945cb; $custom-light: #a67cdc; $custom-dark: #000000;
JSON
{
"hex": "#7945cb",
"rgb": {
"r": 121,
"g": 69,
"b": 203
},
"hsl": {
"h": 263.284,
"s": 56.303,
"l": 53.333
},
"oklch": {
"l": 0.52372,
"c": 0.19704,
"h": 296.8
},
"luminance": 0.12633
}Semantic roles & 50–950 ramp
primary
#7945CB
secondary
#BCD399
accent
#E048A5
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100A15
muted
#7F7C83