Skip to content

#7f49ff

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

RGB
127, 73, 255
HSL
258°, 100%, 64%
CMYK
50, 71, 0, 0
Luminance
0.1650

Every format

HEX#7f49ff
RGBrgb(127, 73, 255)
HSLhsl(258, 100%, 64%)
CMYKcmyk(50%, 71%, 0%, 0%)
LABlab(47.6 63.1 -82.3)
LCHlch(47.6 103.7 307.5)
OKLCHoklch(0.576 0.251 289.7)

Copy-ready code

/* CSS */
color: #7f49ff;
background-color: #7f49ff;
/* Tailwind (arbitrary) */
class="text-[#7f49ff] bg-[#7f49ff]"
/* SCSS */
$brand: #7f49ff;
/* SwiftUI */
Color(red: 0.498, green: 0.286, blue: 1.000)
/* Android */
Color.parseColor("#7f49ff")

Accessibility — WCAG contrast

Aa
#7f49ff on white: 4.88:1
AA ✓ pass · AA-large · AAA
Aa
#7f49ff on black: 4.30:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red49.8%
Green28.6%
Blue100.0%

CMYK percentages

Cyan50.2%
Magenta71.4%
Yellow0.0%
Key (black)0.0%

Color previews

#7f49ff text on a black background

contrast 4.30:1

Card sample

#7f49ff text on a white background

contrast 4.88:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(127, 73, 255, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(127, 73, 255, 0.45);
Border & gradient
Gradient panel
border: 3px solid #7f49ff;
background: linear-gradient(135deg, #7f49ff, #F849FF);

Monochromatic scale

Palettes built from #7f49ff

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #7f49ff in the Color Lab