#7946CB#7946CB
#7946CB is a mid, vivid violet. Relative luminance 0.128; OKLCH L 52.5% C 0.196 H 296.7°. Best body text is #FFFFFF at 5.91:1 contrast (WCAG AA passes).
Color values
| HEX | #7946CB |
|---|---|
| RGB | rgb(121, 70, 203) |
| HSL | hsl(263, 56%, 54%) |
| HSV | hsv(263, 66%, 80%) |
| CMYK | cmyk(40.4%, 65.5%, 0%, 20.4%) |
| CIE-LAB | lab(42.39, 49.86, -61.31) |
| CIE-LCH | lch(42.39, 79.02, 309.12°) |
| OKLab | oklab(52.51% 0.0879 -0.1749) |
| OKLCH | oklch(52.51% 0.196 296.7) |
| XYZ | xyz(20.8520, 12.7567, 57.8520) |
| Luminance | 0.1276 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Bluey Purple
#6241C7
ΔE00 4.18
Bluish Purple
#703BE7
ΔE00 4.39
Blueviolet
#8A2BE2
ΔE00 5.19
Burple
#6832E3
ΔE00 5.57
Purpleish Blue
#6140EF
ΔE00 5.93
Light Indigo
#6D5ACF
ΔE00 5.98
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7946CB #98CB46
analogous
#4655CB #7946CB #BC46CB
triadic
#7946CB #CB7946 #46CB79
tetradic
#7946CB #CB4655 #98CB46 #46CBBC
square
#7946CB #CB4655 #98CB46 #46CBBC
split-complementary
#7946CB #CBBC46 #55CB46
monochromatic
#412176 #5C2EA5 #7946CB #9C76D8 #BEA6E6
Accessibility & contrast
On white
5.91
#7946CB on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.55
#7946CB on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7946CB
5.91:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7946CB | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7946CB | 1.00 | 5.91 | 3.55 | 5.91 |
| #FFFFFF | 5.91 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.55 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.91 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0065CF
Deuteranopia (green-blind)
#0062C8
Tritanopia (blue-blind)
#646582
Achromatopsia (no color)
#646464
Design tokens & code
CSS
--color: #7946cb; /* rgb */ color: rgb(121, 70, 203); /* oklch */ color: oklch(52.5% 0.196 296.7);
Tailwind
colors: {
custom: {
50: '#a67ddc',
500: '#7946cb',
950: '#000000',
},
}SCSS
$custom: #7946cb; $custom-light: #a67ddc; $custom-dark: #000000;
JSON
{
"hex": "#7946cb",
"rgb": {
"r": 121,
"g": 70,
"b": 203
},
"hsl": {
"h": 263.008,
"s": 56.118,
"l": 53.529
},
"oklch": {
"l": 0.52509,
"c": 0.19576,
"h": 296.7
},
"luminance": 0.12757
}Semantic roles & 50–950 ramp
primary
#7946CB
secondary
#BDD39A
accent
#DF48A5
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100A15
muted
#7F7C83