Skip to content

#f09dfd

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

RGB
240, 157, 253
HSL
292°, 96%, 80%
CMYK
5, 38, 0, 1
Luminance
0.4973

Every format

HEX#f09dfd
RGBrgb(240, 157, 253)
HSLhsl(292, 96%, 80%)
CMYKcmyk(5%, 38%, 0%, 1%)
LABlab(75.9 46.0 -35.3)
LCHlch(75.9 58.0 322.5)
OKLCHoklch(0.811 0.157 322.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#f09dfd on white: 1.92:1
AA ✗ fail · AA-large · AAA
Aa
#f09dfd on black: 10.95:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red94.1%
Green61.6%
Blue99.2%

CMYK percentages

Cyan5.1%
Magenta37.9%
Yellow0.0%
Key (black)0.8%

Color previews

#f09dfd text on a black background

contrast 10.95:1

Card sample

#f09dfd text on a white background

contrast 1.92:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f09dfd

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f09dfd in the Color Lab