#7942BE#7942BE
#7942BE is a mid, vivid violet. Relative luminance 0.117; OKLCH L 51.0% C 0.186 H 300.2°. Best body text is #FFFFFF at 6.30:1 contrast (WCAG AA passes).
Color values
| HEX | #7942BE |
|---|---|
| RGB | rgb(121, 66, 190) |
| HSL | hsl(267, 49%, 50%) |
| HSV | hsv(267, 65%, 75%) |
| CMYK | cmyk(36.3%, 65.3%, 0%, 25.5%) |
| CIE-LAB | lab(40.70, 48.59, -56.49) |
| CIE-LCH | lch(40.70, 74.52, 310.70°) |
| OKLab | oklab(51% 0.0937 -0.1607) |
| OKLCH | oklch(51% 0.186 300.2) |
| XYZ | xyz(19.1254, 11.6789, 49.9519) |
| Luminance | 0.1168 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Bluey Purple
#6241C7
ΔE00 4.48
Royal Purple
#7851A9
ΔE00 5.42
Blueviolet
#8A2BE2
ΔE00 5.81
Darkorchid
#9932CC
ΔE00 5.87
Bluish Purple
#703BE7
ΔE00 5.92
Burple
#6832E3
ΔE00 6.38
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7942BE #87BE42
analogous
#4249BE #7942BE #B742BE
triadic
#7942BE #BE7942 #42BE79
tetradic
#7942BE #BE4249 #87BE42 #42BEB7
square
#7942BE #BE4249 #87BE42 #42BEB7
split-complementary
#7942BE #BEB742 #49BE42
monochromatic
#3F2263 #5C3291 #7942BE #9970CE #BA9DDD
Accessibility & contrast
On white
6.30
#7942BE on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.34
#7942BE on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7942BE
6.30:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7942BE | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7942BE | 1.00 | 6.30 | 3.34 | 6.30 |
| #FFFFFF | 6.30 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.34 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.30 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0060C2
Deuteranopia (green-blind)
#005FBB
Tritanopia (blue-blind)
#6A5E7A
Achromatopsia (no color)
#606060
Design tokens & code
CSS
--color: #7942be; /* rgb */ color: rgb(121, 66, 190); /* oklch */ color: oklch(51.0% 0.186 300.2);
Tailwind
colors: {
custom: {
50: '#a57ad2',
500: '#7942be',
950: '#000000',
},
}SCSS
$custom: #7942be; $custom-light: #a57ad2; $custom-dark: #000000;
JSON
{
"hex": "#7942be",
"rgb": {
"r": 121,
"g": 66,
"b": 190
},
"hsl": {
"h": 266.613,
"s": 48.819,
"l": 50.196
},
"oklch": {
"l": 0.50995,
"c": 0.18604,
"h": 300.2
},
"luminance": 0.11679
}Semantic roles & 50–950 ramp
primary
#7942BE
secondary
#B1CA92
accent
#D84F9C
background
#FAF7FD
surface
#F4EEFA
border
#CEC9D3
text
#100914
muted
#7F7B83