Skip to content

#f18df7

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

RGB
241, 141, 247
HSL
297°, 87%, 76%
CMYK
2, 43, 0, 3
Luminance
0.4447

Every format

HEX#f18df7
RGBrgb(241, 141, 247)
HSLhsl(297, 87%, 76%)
CMYKcmyk(2%, 43%, 0%, 3%)
LABlab(72.5 53.4 -37.3)
LCHlch(72.5 65.1 325.1)
OKLCHoklch(0.785 0.178 325.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#f18df7 on white: 2.12:1
AA ✗ fail · AA-large · AAA
Aa
#f18df7 on black: 9.89:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red94.5%
Green55.3%
Blue96.9%

CMYK percentages

Cyan2.4%
Magenta42.9%
Yellow0.0%
Key (black)3.1%

Color previews

#f18df7 text on a black background

contrast 9.89:1

Card sample

#f18df7 text on a white background

contrast 2.12:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f18df7

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f18df7 in the Color Lab