Skip to content

#9f98ff

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

RGB
159, 152, 255
HSL
244°, 100%, 80%
CMYK
38, 40, 0, 0
Luminance
0.3705

Every format

HEX#9f98ff
RGBrgb(159, 152, 255)
HSLhsl(244, 100%, 80%)
CMYKcmyk(38%, 40%, 0%, 0%)
LABlab(67.3 26.4 -50.4)
LCHlch(67.3 56.9 297.7)
OKLCHoklch(0.729 0.147 285.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#9f98ff on white: 2.50:1
AA ✗ fail · AA-large · AAA
Aa
#9f98ff on black: 8.41:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red62.4%
Green59.6%
Blue100.0%

CMYK percentages

Cyan37.6%
Magenta40.4%
Yellow0.0%
Key (black)0.0%

Color previews

#9f98ff text on a black background

contrast 8.41:1

Card sample

#9f98ff text on a white background

contrast 2.50:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #9f98ff

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #9f98ff in the Color Lab