Skip to content

#917df2

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

RGB
145, 125, 242
HSL
250°, 82%, 72%
CMYK
40, 48, 0, 5
Luminance
0.2710

Every format

HEX#917df2
RGBrgb(145, 125, 242)
HSLhsl(250, 82%, 72%)
CMYKcmyk(40%, 48%, 0%, 5%)
LABlab(59.1 35.0 -56.4)
LCHlch(59.1 66.4 301.8)
OKLCHoklch(0.661 0.169 288.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#917df2 on white: 3.27:1
AA ✗ fail · AA-large · AAA
Aa
#917df2 on black: 6.42:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red56.9%
Green49.0%
Blue94.9%

CMYK percentages

Cyan40.1%
Magenta48.3%
Yellow0.0%
Key (black)5.1%

Color previews

#917df2 text on a black background

contrast 6.42:1

Card sample

#917df2 text on a white background

contrast 3.27:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #917df2;
Background color
Panel with #917df2 background
background-color: #917df2;
Text shadow — hex

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(145, 125, 242, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(145, 125, 242, 0.45);
Border & gradient
Gradient panel
border: 3px solid #917df2;
background: linear-gradient(135deg, #917df2, #DF7DF2);

Monochromatic scale

Palettes built from #917df2

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #917df2 in the Color Lab