Skip to content

#7f2fee

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

RGB
127, 47, 238
HSL
265°, 85%, 56%
CMYK
47, 80, 0, 7
Luminance
0.1272

Every format

HEX#7f2fee
RGBrgb(127, 47, 238)
HSLhsl(265, 85%, 56%)
CMYKcmyk(47%, 80%, 0%, 7%)
LABlab(42.3 69.8 -81.4)
LCHlch(42.3 107.2 310.6)
OKLCHoklch(0.535 0.257 294.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#7f2fee on white: 5.93:1
AA ✓ pass · AA-large · AAA
Aa
#7f2fee on black: 3.54:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red49.8%
Green18.4%
Blue93.3%

CMYK percentages

Cyan46.6%
Magenta80.3%
Yellow0.0%
Key (black)6.7%

Color previews

#7f2fee text on a black background

contrast 3.54:1

Card sample

#7f2fee text on a white background

contrast 5.93:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #7f2fee

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #7f2fee in the Color Lab