Skip to content

#918df2

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

RGB
145, 141, 242
HSL
242°, 80%, 75%
CMYK
40, 42, 0, 5
Luminance
0.3148

Every format

HEX#918df2
RGBrgb(145, 141, 242)
HSLhsl(242, 80%, 75%)
CMYKcmyk(40%, 42%, 0%, 5%)
LABlab(62.9 25.7 -50.3)
LCHlch(62.9 56.5 297.0)
OKLCHoklch(0.690 0.146 283.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#918df2 on white: 2.88:1
AA ✗ fail · AA-large · AAA
Aa
#918df2 on black: 7.30:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red56.9%
Green55.3%
Blue94.9%

CMYK percentages

Cyan40.1%
Magenta41.7%
Yellow0.0%
Key (black)5.1%

Color previews

#918df2 text on a black background

contrast 7.30:1

Card sample

#918df2 text on a white background

contrast 2.88:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #918df2

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #918df2 in the Color Lab