Skip to content

#787ddf

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

RGB
120, 125, 223
HSL
237°, 62%, 67%
CMYK
46, 44, 0, 13
Luminance
0.2399

Every format

HEX#787ddf
RGBrgb(120, 125, 223)
HSLhsl(237, 62%, 67%)
CMYKcmyk(46%, 44%, 0%, 13%)
LABlab(56.1 23.6 -50.7)
LCHlch(56.1 55.9 294.9)
OKLCHoklch(0.630 0.146 279.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#787ddf on white: 3.62:1
AA ✗ fail · AA-large · AAA
Aa
#787ddf on black: 5.80:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red47.1%
Green49.0%
Blue87.5%

CMYK percentages

Cyan46.2%
Magenta43.9%
Yellow0.0%
Key (black)12.5%

Color previews

#787ddf text on a black background

contrast 5.80:1

Card sample

#787ddf text on a white background

contrast 3.62:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #787ddf

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #787ddf in the Color Lab