Skip to content

#8f7fdb

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

RGB
143, 127, 219
HSL
250°, 56%, 68%
CMYK
35, 42, 0, 14
Luminance
0.2613

Every format

HEX#8f7fdb
RGBrgb(143, 127, 219)
HSLhsl(250, 56%, 68%)
CMYKcmyk(35%, 42%, 0%, 14%)
LABlab(58.2 27.1 -45.1)
LCHlch(58.2 52.6 301.0)
OKLCHoklch(0.650 0.135 290.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#8f7fdb on white: 3.37:1
AA ✗ fail · AA-large · AAA
Aa
#8f7fdb on black: 6.23:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red56.1%
Green49.8%
Blue85.9%

CMYK percentages

Cyan34.7%
Magenta42.0%
Yellow0.0%
Key (black)14.1%

Color previews

#8f7fdb text on a black background

contrast 6.23:1

Card sample

#8f7fdb text on a white background

contrast 3.37:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #8f7fdb

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #8f7fdb in the Color Lab