#7942BF#7942BF
#7942BF is a mid, vivid violet. Relative luminance 0.117; OKLCH L 51.1% C 0.187 H 300.0°. Best body text is #FFFFFF at 6.28:1 contrast (WCAG AA passes).
Color values
| HEX | #7942BF |
|---|---|
| RGB | rgb(121, 66, 191) |
| HSL | hsl(266, 49%, 50%) |
| HSV | hsv(266, 65%, 75%) |
| CMYK | cmyk(36.6%, 65.4%, 0%, 25.1%) |
| CIE-LAB | lab(40.77, 48.85, -56.96) |
| CIE-LCH | lch(40.77, 75.04, 310.62°) |
| OKLab | oklab(51.07% 0.0936 -0.1621) |
| OKLCH | oklch(51.07% 0.187 300) |
| XYZ | xyz(19.2350, 11.7228, 50.5295) |
| Luminance | 0.1172 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Bluey Purple
#6241C7
ΔE00 4.40
Royal Purple
#7851A9
ΔE00 5.52
Blueviolet
#8A2BE2
ΔE00 5.71
Bluish Purple
#703BE7
ΔE00 5.77
Darkorchid
#9932CC
ΔE00 5.85
Burple
#6832E3
ΔE00 6.26
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7942BF #88BF42
analogous
#4249BF #7942BF #B742BF
triadic
#7942BF #BF7942 #42BF79
tetradic
#7942BF #BF4249 #88BF42 #42BFB7
square
#7942BF #BF4249 #88BF42 #42BFB7
split-complementary
#7942BF #BFB742 #49BF42
monochromatic
#3F2265 #5C3292 #7942BF #9970CE #BA9DDE
Accessibility & contrast
On white
6.28
#7942BF on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.34
#7942BF on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7942BF
6.28:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7942BF | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7942BF | 1.00 | 6.28 | 3.34 | 6.28 |
| #FFFFFF | 6.28 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.34 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.28 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0060C3
Deuteranopia (green-blind)
#005FBC
Tritanopia (blue-blind)
#6A5E7B
Achromatopsia (no color)
#606060
Design tokens & code
CSS
--color: #7942bf; /* rgb */ color: rgb(121, 66, 191); /* oklch */ color: oklch(51.1% 0.187 300.0);
Tailwind
colors: {
custom: {
50: '#a57ad3',
500: '#7942bf',
950: '#000000',
},
}SCSS
$custom: #7942bf; $custom-light: #a57ad3; $custom-dark: #000000;
JSON
{
"hex": "#7942bf",
"rgb": {
"r": 121,
"g": 66,
"b": 191
},
"hsl": {
"h": 266.4,
"s": 49.407,
"l": 50.392
},
"oklch": {
"l": 0.51068,
"c": 0.18719,
"h": 300
},
"luminance": 0.11723
}Semantic roles & 50–950 ramp
primary
#7942BF
secondary
#B2CA93
accent
#D94F9C
background
#FAF7FD
surface
#F4EEFA
border
#CEC9D3
text
#100914
muted
#7F7B83