Skip to content

#787ef1

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

RGB
120, 126, 241
HSL
237°, 81%, 71%
CMYK
50, 48, 0, 6
Luminance
0.2527

Every format

HEX#787ef1
RGBrgb(120, 126, 241)
HSLhsl(237, 81%, 71%)
CMYKcmyk(50%, 48%, 0%, 6%)
LABlab(57.3 28.4 -58.8)
LCHlch(57.3 65.3 295.8)
OKLCHoklch(0.643 0.169 278.3)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#787ef1 on white: 3.47:1
AA ✗ fail · AA-large · AAA
Aa
#787ef1 on black: 6.05:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red47.1%
Green49.4%
Blue94.5%

CMYK percentages

Cyan50.2%
Magenta47.7%
Yellow0.0%
Key (black)5.5%

Color previews

#787ef1 text on a black background

contrast 6.05:1

Card sample

#787ef1 text on a white background

contrast 3.47:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #787ef1;
Background color
Panel with #787ef1 background
background-color: #787ef1;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #787ef1;
Text shadow — RGB

Soft neon halo

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

Monochromatic scale

Palettes built from #787ef1

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #787ef1 in the Color Lab