#7942BA#7942BA
#7942BA is a mid, vivid violet. Relative luminance 0.115; OKLCH L 50.7% C 0.181 H 301.2°. Best body text is #FFFFFF at 6.36:1 contrast (WCAG AA passes).
Color values
| HEX | #7942BA |
|---|---|
| RGB | rgb(121, 66, 186) |
| HSL | hsl(268, 48%, 49%) |
| HSV | hsv(268, 65%, 73%) |
| CMYK | cmyk(34.9%, 64.5%, 0%, 27.1%) |
| CIE-LAB | lab(40.42, 47.58, -54.60) |
| CIE-LCH | lch(40.42, 72.42, 311.07°) |
| OKLab | oklab(50.7% 0.0941 -0.1552) |
| OKLCH | oklch(50.7% 0.181 301.2) |
| XYZ | xyz(18.6942, 11.5065, 47.6809) |
| Luminance | 0.1151 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Bluey Purple
#6241C7
ΔE00 4.83
Royal Purple
#7851A9
ΔE00 5.04
Darkorchid
#9932CC
ΔE00 5.99
Blueviolet
#8A2BE2
ΔE00 6.27
Bluish Purple
#703BE7
ΔE00 6.53
Purply
#983FB2
ΔE00 6.69
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7942BA #83BA42
analogous
#4247BA #7942BA #B542BA
triadic
#7942BA #BA7942 #42BA79
tetradic
#7942BA #BA4247 #83BA42 #42BAB5
square
#7942BA #BA4247 #83BA42 #42BAB5
split-complementary
#7942BA #BAB542 #47BA42
monochromatic
#3E2260 #5C328D #7942BA #996ECB #B99BDB
Accessibility & contrast
On white
6.36
#7942BA on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.30
#7942BA on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7942BA
6.36:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7942BA | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7942BA | 1.00 | 6.36 | 3.30 | 6.36 |
| #FFFFFF | 6.36 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.30 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.36 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005FBE
Deuteranopia (green-blind)
#105FB7
Tritanopia (blue-blind)
#6B5C78
Achromatopsia (no color)
#5F5F5F
Design tokens & code
CSS
--color: #7942ba; /* rgb */ color: rgb(121, 66, 186); /* oklch */ color: oklch(50.7% 0.181 301.2);
Tailwind
colors: {
custom: {
50: '#a47acf',
500: '#7942ba',
950: '#000000',
},
}SCSS
$custom: #7942ba; $custom-light: #a47acf; $custom-dark: #000000;
JSON
{
"hex": "#7942ba",
"rgb": {
"r": 121,
"g": 66,
"b": 186
},
"hsl": {
"h": 267.5,
"s": 47.619,
"l": 49.412
},
"oklch": {
"l": 0.50704,
"c": 0.18145,
"h": 301.2
},
"luminance": 0.11507
}Semantic roles & 50–950 ramp
primary
#7942BA
secondary
#AEC890
accent
#D7519A
background
#FAF7FC
surface
#F4EEF9
border
#CEC9D2
text
#100914
muted
#7F7B82