Skip to content

#8f7fd2

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

RGB
143, 127, 210
HSL
252°, 48%, 66%
CMYK
32, 40, 0, 18
Luminance
0.2567

Every format

HEX#8f7fd2
RGBrgb(143, 127, 210)
HSLhsl(252, 48%, 66%)
CMYKcmyk(32%, 40%, 0%, 18%)
LABlab(57.7 24.7 -40.7)
LCHlch(57.7 47.6 301.3)
OKLCHoklch(0.645 0.122 291.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#8f7fd2 on white: 3.42:1
AA ✗ fail · AA-large · AAA
Aa
#8f7fd2 on black: 6.13:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red56.1%
Green49.8%
Blue82.4%

CMYK percentages

Cyan31.9%
Magenta39.5%
Yellow0.0%
Key (black)17.6%

Color previews

#8f7fd2 text on a black background

contrast 6.13:1

Card sample

#8f7fd2 text on a white background

contrast 3.42:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #8f7fd2

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #8f7fd2 in the Color Lab