Skip to content

#9f9dfb

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

RGB
159, 157, 251
HSL
241°, 92%, 80%
CMYK
37, 38, 0, 2
Luminance
0.3845

Every format

HEX#9f9dfb
RGBrgb(159, 157, 251)
HSLhsl(241, 92%, 80%)
CMYKcmyk(37%, 38%, 0%, 2%)
LABlab(68.3 22.5 -46.6)
LCHlch(68.3 51.8 295.8)
OKLCHoklch(0.736 0.134 283.6)

Copy-ready code

/* CSS */
color: #9f9dfb;
background-color: #9f9dfb;
/* Tailwind (arbitrary) */
class="text-[#9f9dfb] bg-[#9f9dfb]"
/* SCSS */
$brand: #9f9dfb;
/* SwiftUI */
Color(red: 0.624, green: 0.616, blue: 0.984)
/* Android */
Color.parseColor("#9f9dfb")

Accessibility — WCAG contrast

Aa
#9f9dfb on white: 2.42:1
AA ✗ fail · AA-large · AAA
Aa
#9f9dfb on black: 8.69:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red62.4%
Green61.6%
Blue98.4%

CMYK percentages

Cyan36.7%
Magenta37.5%
Yellow0.0%
Key (black)1.6%

Color previews

#9f9dfb text on a black background

contrast 8.69:1

Card sample

#9f9dfb text on a white background

contrast 2.42:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #9f9dfb;
Background color
Panel with #9f9dfb background
background-color: #9f9dfb;
Text shadow — hex

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(159, 157, 251, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(159, 157, 251, 0.45);
Border & gradient
Gradient panel
border: 3px solid #9f9dfb;
background: linear-gradient(135deg, #9f9dfb, #DE9DFB);

Monochromatic scale

Palettes built from #9f9dfb

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #9f9dfb in the Color Lab