Skip to content

#7f7ef1

a light, electric blue · warm · closest name: royalblue

RGB
127, 126, 241
HSL
241°, 80%, 72%
CMYK
47, 48, 0, 6
Luminance
0.2578

Every format

HEX#7f7ef1
RGBrgb(127, 126, 241)
HSLhsl(241, 80%, 72%)
CMYKcmyk(47%, 48%, 0%, 6%)
LABlab(57.8 29.9 -57.9)
LCHlch(57.8 65.2 297.3)
OKLCHoklch(0.648 0.168 281.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#7f7ef1 on white: 3.41:1
AA ✗ fail · AA-large · AAA
Aa
#7f7ef1 on black: 6.16:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red49.8%
Green49.4%
Blue94.5%

CMYK percentages

Cyan47.3%
Magenta47.7%
Yellow0.0%
Key (black)5.5%

Color previews

#7f7ef1 text on a black background

contrast 6.16:1

Card sample

#7f7ef1 text on a white background

contrast 3.41:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #7f7ef1

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #7f7ef1 in the Color Lab