#792df0
a balanced, electric violet · warm · closest name: blue
RGB
121, 45, 240
HSL
263°, 87%, 56%
CMYK
50, 81, 0, 6
Luminance
0.1223
Every format
| HEX | #792df0 |
| RGB | rgb(121, 45, 240) |
| HSL | hsl(263, 87%, 56%) |
| CMYK | cmyk(50%, 81%, 0%, 6%) |
| LAB | lab(41.6 70.2 -83.8) |
| LCH | lch(41.6 109.3 310.0) |
| OKLCH | oklch(0.529 0.261 292.5) |
Copy-ready code
/* CSS */
color: #792df0;
background-color: #792df0;
/* Tailwind (arbitrary) */
class="text-[#792df0] bg-[#792df0]"
/* SCSS */
$brand: #792df0;
/* SwiftUI */
Color(red: 0.475, green: 0.176, blue: 0.941)
/* Android */
Color.parseColor("#792df0")Accessibility — WCAG contrast
Aa
#792df0 on white: 6.09:1
AA ✓ pass · AA-large ✓ · AAA ✗
Aa
#792df0 on black: 3.45:1
AA ✗ fail · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red47.5%
Green17.6%
Blue94.1%
CMYK percentages
Cyan49.6%
Magenta81.3%
Yellow0.0%
Key (black)5.9%
Color previews
#792df0 text on a black background
contrast 3.45:1
Card sample
#792df0 text on a white background
contrast 6.09:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #792df0;
Background color
Panel with #792df0 background
background-color: #792df0;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #792df0;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(121, 45, 240, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(121, 45, 240, 0.45);
Border & gradient
Gradient panel
border: 3px solid #792df0; background: linear-gradient(135deg, #792df0, #F02DE5);