Skip to content

#8c78df

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

RGB
140, 120, 223
HSL
252°, 62%, 67%
CMYK
37, 46, 0, 13
Luminance
0.2434

Every format

HEX#8c78df
RGBrgb(140, 120, 223)
HSLhsl(252, 62%, 67%)
CMYKcmyk(37%, 46%, 0%, 13%)
LABlab(56.4 31.4 -50.1)
LCHlch(56.4 59.1 302.1)
OKLCHoklch(0.637 0.151 290.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#8c78df on white: 3.58:1
AA ✗ fail · AA-large · AAA
Aa
#8c78df on black: 5.87:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red54.9%
Green47.1%
Blue87.5%

CMYK percentages

Cyan37.2%
Magenta46.2%
Yellow0.0%
Key (black)12.5%

Color previews

#8c78df text on a black background

contrast 5.87:1

Card sample

#8c78df text on a white background

contrast 3.58:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #8c78df;
Background color
Panel with #8c78df background
background-color: #8c78df;
Text shadow — hex

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #8c78df

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #8c78df in the Color Lab