Skip to content

#7f50ff

a light, electric violet · warm · closest name: slateblue

RGB
127, 80, 255
HSL
256°, 100%, 66%
CMYK
50, 69, 0, 0
Luminance
0.1747

Every format

HEX#7f50ff
RGBrgb(127, 80, 255)
HSLhsl(256, 100%, 66%)
CMYKcmyk(50%, 69%, 0%, 0%)
LABlab(48.8 59.7 -80.2)
LCHlch(48.8 100.0 306.6)
OKLCHoklch(0.585 0.243 288.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#7f50ff on white: 4.67:1
AA ✓ pass · AA-large · AAA
Aa
#7f50ff on black: 4.49:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red49.8%
Green31.4%
Blue100.0%

CMYK percentages

Cyan50.2%
Magenta68.6%
Yellow0.0%
Key (black)0.0%

Color previews

#7f50ff text on a black background

contrast 4.49:1

Card sample

#7f50ff text on a white background

contrast 4.67:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #7f50ff

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #7f50ff in the Color Lab