Skip to content

#792fd2

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

RGB
121, 47, 210
HSL
267°, 64%, 50%
CMYK
42, 78, 0, 18
Luminance
0.1075

Every format

HEX#792fd2
RGBrgb(121, 47, 210)
HSLhsl(267, 64%, 50%)
CMYKcmyk(42%, 78%, 0%, 18%)
LABlab(39.2 62.3 -70.6)
LCHlch(39.2 94.2 311.4)
OKLCHoklch(0.504 0.229 298.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#792fd2 on white: 6.67:1
AA ✓ pass · AA-large · AAA
Aa
#792fd2 on black: 3.15:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red47.5%
Green18.4%
Blue82.4%

CMYK percentages

Cyan42.4%
Magenta77.6%
Yellow0.0%
Key (black)17.6%

Color previews

#792fd2 text on a black background

contrast 3.15:1

Card sample

#792fd2 text on a white background

contrast 6.67:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #792fd2

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #792fd2 in the Color Lab