Skip to content

#f28cfb

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

RGB
242, 140, 251
HSL
295°, 93%, 77%
CMYK
4, 44, 0, 2
Luminance
0.4460

Every format

HEX#f28cfb
RGBrgb(242, 140, 251)
HSLhsl(295, 93%, 77%)
CMYKcmyk(4%, 44%, 0%, 2%)
LABlab(72.6 54.9 -39.3)
LCHlch(72.6 67.5 324.4)
OKLCHoklch(0.786 0.184 324.1)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red94.9%
Green54.9%
Blue98.4%

CMYK percentages

Cyan3.6%
Magenta44.2%
Yellow0.0%
Key (black)1.6%

Color previews

#f28cfb text on a black background

contrast 9.92:1

Card sample

#f28cfb text on a white background

contrast 2.12:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f28cfb

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f28cfb in the Color Lab