Skip to content

#f162df

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

RGB
241, 98, 223
HSL
308°, 84%, 67%
CMYK
0, 59, 8, 6
Luminance
0.3276

Every format

HEX#f162df
RGBrgb(241, 98, 223)
HSLhsl(308, 84%, 67%)
CMYKcmyk(0%, 59%, 8%, 6%)
LABlab(64.0 69.3 -37.4)
LCHlch(64.0 78.8 331.7)
OKLCHoklch(0.718 0.224 332.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#f162df on white: 2.78:1
AA ✗ fail · AA-large · AAA
Aa
#f162df on black: 7.55:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red94.5%
Green38.4%
Blue87.5%

CMYK percentages

Cyan0.0%
Magenta59.3%
Yellow7.5%
Key (black)5.5%

Color previews

#f162df text on a black background

contrast 7.55:1

Card sample

#f162df text on a white background

contrast 2.78:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f162df

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f162df in the Color Lab