#7942CA#7942CA
#7942CA is a mid, vivid violet. Relative luminance 0.122; OKLCH L 51.9% C 0.200 H 297.5°. Best body text is #FFFFFF at 6.10:1 contrast (WCAG AA passes).
Color values
| HEX | #7942CA |
|---|---|
| RGB | rgb(121, 66, 202) |
| HSL | hsl(264, 56%, 53%) |
| HSV | hsv(264, 67%, 79%) |
| CMYK | cmyk(40.1%, 67.3%, 0%, 20.8%) |
| CIE-LAB | lab(41.57, 51.66, -62.06) |
| CIE-LCH | lch(41.57, 80.75, 309.77°) |
| OKLab | oklab(51.9% 0.0923 -0.1771) |
| OKLCH | oklch(51.9% 0.2 297.5) |
| XYZ | xyz(20.4913, 12.2253, 57.1458) |
| Luminance | 0.1223 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Bluey Purple
#6241C7
ΔE00 3.96
Bluish Purple
#703BE7
ΔE00 4.23
Blueviolet
#8A2BE2
ΔE00 4.69
Burple
#6832E3
ΔE00 5.08
Darkorchid
#9932CC
ΔE00 5.84
Purpley Blue
#5F34E7
ΔE00 5.93
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7942CA #93CA42
analogous
#424FCA #7942CA #BD42CA
triadic
#7942CA #CA7942 #42CA79
tetradic
#7942CA #CA424F #93CA42 #42CABD
square
#7942CA #CA424F #93CA42 #42CABD
split-complementary
#7942CA #CABD42 #4FCA42
monochromatic
#412072 #5C2DA2 #7942CA #9B72D7 #BDA2E5
Accessibility & contrast
On white
6.10
#7942CA on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.45
#7942CA on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7942CA
6.10:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7942CA | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7942CA | 1.00 | 6.10 | 3.45 | 6.10 |
| #FFFFFF | 6.10 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.45 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.10 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0062CE
Deuteranopia (green-blind)
#0060C7
Tritanopia (blue-blind)
#656281
Achromatopsia (no color)
#626262
Design tokens & code
CSS
--color: #7942ca; /* rgb */ color: rgb(121, 66, 202); /* oklch */ color: oklch(51.9% 0.200 297.5);
Tailwind
colors: {
custom: {
50: '#a67adb',
500: '#7942ca',
950: '#000000',
},
}SCSS
$custom: #7942ca; $custom-light: #a67adb; $custom-dark: #000000;
JSON
{
"hex": "#7942ca",
"rgb": {
"r": 121,
"g": 66,
"b": 202
},
"hsl": {
"h": 264.265,
"s": 56.198,
"l": 52.549
},
"oklch": {
"l": 0.51895,
"c": 0.1997,
"h": 297.5
},
"luminance": 0.12226
}Semantic roles & 50–950 ramp
primary
#7942CA
secondary
#BAD196
accent
#DF48A2
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100915
muted
#7F7B83