Skip to content

#704bdf

a balanced, vivid violet · warm · closest name: slateblue

RGB
112, 75, 223
HSL
255°, 70%, 58%
CMYK
50, 66, 0, 13
Luminance
0.1380

Every format

HEX#704bdf
RGBrgb(112, 75, 223)
HSLhsl(255, 70%, 58%)
CMYKcmyk(50%, 66%, 0%, 13%)
LABlab(44.0 51.0 -70.3)
LCHlch(44.0 86.8 305.9)
OKLCHoklch(0.539 0.213 288.6)

Copy-ready code

/* CSS */
color: #704bdf;
background-color: #704bdf;
/* Tailwind (arbitrary) */
class="text-[#704bdf] bg-[#704bdf]"
/* SCSS */
$brand: #704bdf;
/* SwiftUI */
Color(red: 0.439, green: 0.294, blue: 0.875)
/* Android */
Color.parseColor("#704bdf")

Accessibility — WCAG contrast

Aa
#704bdf on white: 5.58:1
AA ✓ pass · AA-large · AAA
Aa
#704bdf on black: 3.76:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red43.9%
Green29.4%
Blue87.5%

CMYK percentages

Cyan49.8%
Magenta66.4%
Yellow0.0%
Key (black)12.5%

Color previews

#704bdf text on a black background

contrast 3.76:1

Card sample

#704bdf text on a white background

contrast 5.58:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #704bdf;
Background color
Panel with #704bdf background
background-color: #704bdf;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #704bdf;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(112, 75, 223, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(112, 75, 223, 0.45);
Border & gradient
Gradient panel
border: 3px solid #704bdf;
background: linear-gradient(135deg, #704bdf, #D34BDF);

Monochromatic scale

Palettes built from #704bdf

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #704bdf in the Color Lab