#704cdf
a balanced, vivid blue · warm · closest name: slateblue
RGB
112, 76, 223
HSL
255°, 70%, 59%
CMYK
50, 66, 0, 13
Luminance
0.1394
Every format
| HEX | #704cdf |
| RGB | rgb(112, 76, 223) |
| HSL | hsl(255, 70%, 59%) |
| CMYK | cmyk(50%, 66%, 0%, 13%) |
| LAB | lab(44.1 50.4 -70.0) |
| LCH | lch(44.1 86.2 305.8) |
| OKLCH | oklch(0.540 0.212 288.5) |
Copy-ready code
/* CSS */
color: #704cdf;
background-color: #704cdf;
/* Tailwind (arbitrary) */
class="text-[#704cdf] bg-[#704cdf]"
/* SCSS */
$brand: #704cdf;
/* SwiftUI */
Color(red: 0.439, green: 0.298, blue: 0.875)
/* Android */
Color.parseColor("#704cdf")Accessibility — WCAG contrast
Aa
#704cdf on white: 5.54:1
AA ✓ pass · AA-large ✓ · AAA ✗
Aa
#704cdf on black: 3.79:1
AA ✗ fail · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red43.9%
Green29.8%
Blue87.5%
CMYK percentages
Cyan49.8%
Magenta65.9%
Yellow0.0%
Key (black)12.5%
Color previews
#704cdf text on a black background
contrast 3.79:1
Card sample
#704cdf text on a white background
contrast 5.54:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #704cdf;
Background color
Panel with #704cdf background
background-color: #704cdf;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #704cdf;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(112, 76, 223, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(112, 76, 223, 0.45);
Border & gradient
Gradient panel
border: 3px solid #704cdf; background: linear-gradient(135deg, #704cdf, #D24CDF);