Skip to content

#787afd

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

RGB
120, 122, 253
HSL
239°, 97%, 73%
CMYK
53, 52, 0, 1
Luminance
0.2500

Every format

HEX#787afd
RGBrgb(120, 122, 253)
HSLhsl(239, 97%, 73%)
CMYKcmyk(53%, 52%, 0%, 1%)
LABlab(57.1 34.4 -65.8)
LCHlch(57.1 74.3 297.6)
OKLCHoklch(0.644 0.190 279.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#787afd on white: 3.50:1
AA ✗ fail · AA-large · AAA
Aa
#787afd on black: 6.00:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red47.1%
Green47.8%
Blue99.2%

CMYK percentages

Cyan52.6%
Magenta51.8%
Yellow0.0%
Key (black)0.8%

Color previews

#787afd text on a black background

contrast 6.00:1

Card sample

#787afd text on a white background

contrast 3.50:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #787afd

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #787afd in the Color Lab