Skip to content

#792cfd

a balanced, electric violet · warm · closest name: blue

RGB
121, 44, 253
HSL
262°, 98%, 58%
CMYK
52, 83, 0, 1
Luminance
0.1296

Every format

HEX#792cfd
RGBrgb(121, 44, 253)
HSLhsl(262, 98%, 58%)
CMYKcmyk(52%, 83%, 0%, 1%)
LABlab(42.7 73.7 -89.2)
LCHlch(42.7 115.7 309.5)
OKLCHoklch(0.540 0.274 290.5)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#792cfd on white: 5.85:1
AA ✓ pass · AA-large · AAA
Aa
#792cfd on black: 3.59:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red47.5%
Green17.3%
Blue99.2%

CMYK percentages

Cyan52.2%
Magenta82.6%
Yellow0.0%
Key (black)0.8%

Color previews

#792cfd text on a black background

contrast 3.59:1

Card sample

#792cfd text on a white background

contrast 5.85:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #792cfd

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #792cfd in the Color Lab