Skip to content

#794cdf

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

RGB
121, 76, 223
HSL
258°, 70%, 59%
CMYK
46, 66, 0, 13
Luminance
0.1456

Every format

HEX#794cdf
RGBrgb(121, 76, 223)
HSLhsl(258, 70%, 59%)
CMYKcmyk(46%, 66%, 0%, 13%)
LABlab(45.0 52.0 -68.5)
LCHlch(45.0 86.0 307.2)
OKLCHoklch(0.549 0.211 292.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#794cdf on white: 5.37:1
AA ✓ pass · AA-large · AAA
Aa
#794cdf on black: 3.91:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red47.5%
Green29.8%
Blue87.5%

CMYK percentages

Cyan45.7%
Magenta65.9%
Yellow0.0%
Key (black)12.5%

Color previews

#794cdf text on a black background

contrast 3.91:1

Card sample

#794cdf text on a white background

contrast 5.37:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #794cdf;
Background color
Panel with #794cdf background
background-color: #794cdf;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #794cdf;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(121, 76, 223, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(121, 76, 223, 0.45);
Border & gradient
Gradient panel
border: 3px solid #794cdf;
background: linear-gradient(135deg, #794cdf, #DB4CDF);

Monochromatic scale

Palettes built from #794cdf

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #794cdf in the Color Lab