Skip to content

#f080fb

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

RGB
240, 128, 251
HSL
295°, 94%, 74%
CMYK
4, 49, 0, 2
Luminance
0.4093

Every format

HEX#f080fb
RGBrgb(240, 128, 251)
HSLhsl(295, 94%, 74%)
CMYKcmyk(4%, 49%, 0%, 2%)
LABlab(70.1 60.2 -43.2)
LCHlch(70.1 74.1 324.3)
OKLCHoklch(0.767 0.202 323.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#f080fb on white: 2.29:1
AA ✗ fail · AA-large · AAA
Aa
#f080fb on black: 9.19:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red94.1%
Green50.2%
Blue98.4%

CMYK percentages

Cyan4.4%
Magenta49.0%
Yellow0.0%
Key (black)1.6%

Color previews

#f080fb text on a black background

contrast 9.19:1

Card sample

#f080fb text on a white background

contrast 2.29:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(240, 128, 251, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(240, 128, 251, 0.45);
Border & gradient
Gradient panel
border: 3px solid #f080fb;
background: linear-gradient(135deg, #f080fb, #FB80B4);

Monochromatic scale

Palettes built from #f080fb

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f080fb in the Color Lab