Skip to content

#8a7fdc

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

RGB
138, 127, 220
HSL
247°, 57%, 68%
CMYK
37, 42, 0, 14
Luminance
0.2575

Every format

HEX#8a7fdc
RGBrgb(138, 127, 220)
HSLhsl(247, 57%, 68%)
CMYKcmyk(37%, 42%, 0%, 14%)
LABlab(57.8 26.0 -46.2)
LCHlch(57.8 53.0 299.4)
OKLCHoklch(0.646 0.136 287.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#8a7fdc on white: 3.41:1
AA ✗ fail · AA-large · AAA
Aa
#8a7fdc on black: 6.15:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red54.1%
Green49.8%
Blue86.3%

CMYK percentages

Cyan37.3%
Magenta42.3%
Yellow0.0%
Key (black)13.7%

Color previews

#8a7fdc text on a black background

contrast 6.15:1

Card sample

#8a7fdc text on a white background

contrast 3.41:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(138, 127, 220, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(138, 127, 220, 0.45);
Border & gradient
Gradient panel
border: 3px solid #8a7fdc;
background: linear-gradient(135deg, #8a7fdc, #C87FDC);

Monochromatic scale

Palettes built from #8a7fdc

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #8a7fdc in the Color Lab