Skip to content

#f080fd

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

RGB
240, 128, 253
HSL
294°, 97%, 75%
CMYK
5, 49, 0, 1
Luminance
0.4106

Every format

HEX#f080fd
RGBrgb(240, 128, 253)
HSLhsl(294, 97%, 75%)
CMYKcmyk(5%, 49%, 0%, 1%)
LABlab(70.2 60.6 -44.2)
LCHlch(70.2 75.0 323.9)
OKLCHoklch(0.768 0.204 323.3)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#f080fd on white: 2.28:1
AA ✗ fail · AA-large · AAA
Aa
#f080fd on black: 9.21:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red94.1%
Green50.2%
Blue99.2%

CMYK percentages

Cyan5.1%
Magenta49.4%
Yellow0.0%
Key (black)0.8%

Color previews

#f080fd text on a black background

contrast 9.21:1

Card sample

#f080fd text on a white background

contrast 2.28:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f080fd

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f080fd in the Color Lab