Skip to content

#f162fd

a light, electric magenta / pink · warm · closest name: violet

RGB
241, 98, 253
HSL
295°, 98%, 69%
CMYK
5, 61, 0, 1
Luminance
0.3453

Every format

HEX#f162fd
RGBrgb(241, 98, 253)
HSLhsl(295, 98%, 69%)
CMYKcmyk(5%, 61%, 0%, 1%)
LABlab(65.4 74.2 -51.8)
LCHlch(65.4 90.5 325.1)
OKLCHoklch(0.733 0.248 324.5)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#f162fd on white: 2.66:1
AA ✗ fail · AA-large · AAA
Aa
#f162fd on black: 7.91:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red94.5%
Green38.4%
Blue99.2%

CMYK percentages

Cyan4.7%
Magenta61.3%
Yellow0.0%
Key (black)0.8%

Color previews

#f162fd text on a black background

contrast 7.91:1

Card sample

#f162fd text on a white background

contrast 2.66:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(241, 98, 253, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(241, 98, 253, 0.45);
Border & gradient
Gradient panel
border: 3px solid #f162fd;
background: linear-gradient(135deg, #f162fd, #FD62A1);

Monochromatic scale

Palettes built from #f162fd

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f162fd in the Color Lab