Skip to content

#794792

a dark, soft violet · warm · closest name: slateblue

RGB
121, 71, 146
HSL
280°, 35%, 43%
CMYK
17, 51, 0, 43
Luminance
0.1065

Every format

HEX#794792
RGBrgb(121, 71, 146)
HSLhsl(280, 35%, 43%)
CMYKcmyk(17%, 51%, 0%, 43%)
LABlab(39.0 35.2 -33.0)
LCHlch(39.0 48.3 316.8)
OKLCHoklch(0.489 0.127 313.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#794792 on white: 6.71:1
AA ✓ pass · AA-large · AAA
Aa
#794792 on black: 3.13:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red47.5%
Green27.8%
Blue57.3%

CMYK percentages

Cyan17.1%
Magenta51.4%
Yellow0.0%
Key (black)42.7%

Color previews

#794792 text on a black background

contrast 3.13:1

Card sample

#794792 text on a white background

contrast 6.71:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(121, 71, 146, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(121, 71, 146, 0.45);
Border & gradient
Gradient panel
border: 3px solid #794792;
background: linear-gradient(135deg, #794792, #924779);

Monochromatic scale

Palettes built from #794792

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #794792 in the Color Lab