#704eb0
a balanced, soft violet · warm · closest name: slateblue
RGB
112, 78, 176
HSL
261°, 39%, 50%
CMYK
36, 56, 0, 31
Luminance
0.1203
Every format
| HEX | #704eb0 |
| RGB | rgb(112, 78, 176) |
| HSL | hsl(261, 39%, 50%) |
| CMYK | cmyk(36%, 56%, 0%, 31%) |
| LAB | lab(41.3 36.2 -47.4) |
| LCH | lch(41.3 59.7 307.4) |
| OKLCH | oklch(0.509 0.150 296.7) |
Copy-ready code
/* CSS */
color: #704eb0;
background-color: #704eb0;
/* Tailwind (arbitrary) */
class="text-[#704eb0] bg-[#704eb0]"
/* SCSS */
$brand: #704eb0;
/* SwiftUI */
Color(red: 0.439, green: 0.306, blue: 0.690)
/* Android */
Color.parseColor("#704eb0")Accessibility — WCAG contrast
Aa
#704eb0 on white: 6.17:1
AA ✓ pass · AA-large ✓ · AAA ✗
Aa
#704eb0 on black: 3.41:1
AA ✗ fail · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red43.9%
Green30.6%
Blue69.0%
CMYK percentages
Cyan36.4%
Magenta55.7%
Yellow0.0%
Key (black)31.0%
Color previews
#704eb0 text on a black background
contrast 3.41:1
Card sample
#704eb0 text on a white background
contrast 6.17:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #704eb0;
Background color
Panel with #704eb0 background
background-color: #704eb0;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #704eb0;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(112, 78, 176, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(112, 78, 176, 0.45);
Border & gradient
Gradient panel
border: 3px solid #704eb0; background: linear-gradient(135deg, #704eb0, #B04EAF);