Skip to content

#787df7

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

RGB
120, 125, 247
HSL
238°, 89%, 72%
CMYK
51, 49, 0, 3
Luminance
0.2538

Every format

HEX#787df7
RGBrgb(120, 125, 247)
HSLhsl(238, 89%, 72%)
CMYKcmyk(51%, 49%, 0%, 3%)
LABlab(57.4 30.8 -61.9)
LCHlch(57.4 69.1 296.4)
OKLCHoklch(0.645 0.178 278.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#787df7 on white: 3.46:1
AA ✗ fail · AA-large · AAA
Aa
#787df7 on black: 6.08:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red47.1%
Green49.0%
Blue96.9%

CMYK percentages

Cyan51.4%
Magenta49.4%
Yellow0.0%
Key (black)3.1%

Color previews

#787df7 text on a black background

contrast 6.08:1

Card sample

#787df7 text on a white background

contrast 3.46:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #787df7

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #787df7 in the Color Lab