Skip to content

#787ade

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

RGB
120, 122, 222
HSL
239°, 61%, 67%
CMYK
46, 45, 0, 13
Luminance
0.2319

Every format

HEX#787ade
RGBrgb(120, 122, 222)
HSLhsl(239, 61%, 67%)
CMYKcmyk(46%, 45%, 0%, 13%)
LABlab(55.3 25.1 -51.5)
LCHlch(55.3 57.3 296.0)
OKLCHoklch(0.624 0.148 280.3)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#787ade on white: 3.73:1
AA ✗ fail · AA-large · AAA
Aa
#787ade on black: 5.64:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red47.1%
Green47.8%
Blue87.1%

CMYK percentages

Cyan45.9%
Magenta45.0%
Yellow0.0%
Key (black)12.9%

Color previews

#787ade text on a black background

contrast 5.64:1

Card sample

#787ade text on a white background

contrast 3.73:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #787ade

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #787ade in the Color Lab