Skip to content

#9fa2fd

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

RGB
159, 162, 253
HSL
238°, 96%, 81%
CMYK
37, 36, 0, 1
Luminance
0.4030

Every format

HEX#9fa2fd
RGBrgb(159, 162, 253)
HSLhsl(238, 96%, 81%)
CMYKcmyk(37%, 36%, 0%, 1%)
LABlab(69.7 20.2 -45.6)
LCHlch(69.7 49.9 293.9)
OKLCHoklch(0.746 0.130 281.3)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#9fa2fd on white: 2.32:1
AA ✗ fail · AA-large · AAA
Aa
#9fa2fd on black: 9.06:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red62.4%
Green63.5%
Blue99.2%

CMYK percentages

Cyan37.2%
Magenta36.0%
Yellow0.0%
Key (black)0.8%

Color previews

#9fa2fd text on a black background

contrast 9.06:1

Card sample

#9fa2fd text on a white background

contrast 2.32:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #9fa2fd

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #9fa2fd in the Color Lab