Skip to content

#792fdf

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

RGB
121, 47, 223
HSL
265°, 73%, 53%
CMYK
46, 79, 0, 13
Luminance
0.1143

Every format

HEX#792fdf
RGBrgb(121, 47, 223)
HSLhsl(265, 73%, 53%)
CMYKcmyk(46%, 79%, 0%, 13%)
LABlab(40.3 65.4 -76.3)
LCHlch(40.3 100.4 310.6)
OKLCHoklch(0.515 0.242 295.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#792fdf on white: 6.39:1
AA ✓ pass · AA-large · AAA
Aa
#792fdf on black: 3.29:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red47.5%
Green18.4%
Blue87.5%

CMYK percentages

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

Color previews

#792fdf text on a black background

contrast 3.29:1

Card sample

#792fdf text on a white background

contrast 6.39:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #792fdf

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #792fdf in the Color Lab