#7942B5#7942B5
#7942B5 is a mid, vivid violet. Relative luminance 0.113; OKLCH L 50.3% C 0.176 H 302.5°. Best body text is #FFFFFF at 6.44:1 contrast (WCAG AA passes).
Color values
| HEX | #7942B5 |
|---|---|
| RGB | rgb(121, 66, 181) |
| HSL | hsl(269, 47%, 48%) |
| HSV | hsv(269, 64%, 71%) |
| CMYK | cmyk(33.1%, 63.5%, 0%, 29%) |
| CIE-LAB | lab(40.08, 46.33, -52.21) |
| CIE-LCH | lch(40.08, 69.81, 311.58°) |
| OKLab | oklab(50.35% 0.0944 -0.1482) |
| OKLCH | oklch(50.35% 0.176 302.5) |
| XYZ | xyz(18.1719, 11.2976, 44.9304) |
| Luminance | 0.1130 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal Purple
#7851A9
ΔE00 4.63
Bluey Purple
#6241C7
ΔE00 5.36
Darkorchid
#9932CC
ΔE00 6.22
Rebeccapurple
#663399
ΔE00 6.24
Purply
#983FB2
ΔE00 6.40
Blueviolet
#8A2BE2
ΔE00 6.90
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7942B5 #7EB542
analogous
#4244B5 #7942B5 #B242B5
triadic
#7942B5 #B57942 #42B579
tetradic
#7942B5 #B54244 #7EB542 #42B5B2
square
#7942B5 #B54244 #7EB542 #42B5B2
split-complementary
#7942B5 #B5B242 #44B542
monochromatic
#3D215B #5B3288 #7942B5 #986BC9 #B798D9
Accessibility & contrast
On white
6.44
#7942B5 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.26
#7942B5 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7942B5
6.44:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7942B5 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7942B5 | 1.00 | 6.44 | 3.26 | 6.44 |
| #FFFFFF | 6.44 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.26 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.44 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005DB9
Deuteranopia (green-blind)
#1C5EB2
Tritanopia (blue-blind)
#6D5B75
Achromatopsia (no color)
#5E5E5E
Design tokens & code
CSS
--color: #7942b5; /* rgb */ color: rgb(121, 66, 181); /* oklch */ color: oklch(50.3% 0.176 302.5);
Tailwind
colors: {
custom: {
50: '#a479cc',
500: '#7942b5',
950: '#000000',
},
}SCSS
$custom: #7942b5; $custom-light: #a479cc; $custom-dark: #000000;
JSON
{
"hex": "#7942b5",
"rgb": {
"r": 121,
"g": 66,
"b": 181
},
"hsl": {
"h": 268.696,
"s": 46.559,
"l": 48.431
},
"oklch": {
"l": 0.50346,
"c": 0.1757,
"h": 302.5
},
"luminance": 0.11298
}Semantic roles & 50–950 ramp
primary
#7942B5
secondary
#ABC58E
accent
#D65297
background
#FAF7FC
surface
#F4EEF9
border
#CEC9D2
text
#100913
muted
#7F7B82