Skip to content

#791fdf

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

RGB
121, 31, 223
HSL
268°, 76%, 50%
CMYK
46, 86, 0, 13
Luminance
0.1037

Every format

HEX#791fdf
RGBrgb(121, 31, 223)
HSLhsl(268, 76%, 50%)
CMYKcmyk(46%, 86%, 0%, 13%)
LABlab(38.5 70.6 -79.2)
LCHlch(38.5 106.1 311.7)
OKLCHoklch(0.503 0.254 296.5)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#791fdf on white: 6.83:1
AA ✓ pass · AA-large · AAA
Aa
#791fdf on black: 3.07:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red47.5%
Green12.2%
Blue87.5%

CMYK percentages

Cyan45.7%
Magenta86.1%
Yellow0.0%
Key (black)12.5%

Color previews

#791fdf text on a black background

contrast 3.07:1

Card sample

#791fdf text on a white background

contrast 6.83:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #791fdf

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #791fdf in the Color Lab