Skip to content

#f06afd

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

RGB
240, 106, 253
HSL
295°, 97%, 70%
CMYK
5, 58, 0, 1
Luminance
0.3593

Every format

HEX#f06afd
RGBrgb(240, 106, 253)
HSLhsl(295, 97%, 70%)
CMYKcmyk(5%, 58%, 0%, 1%)
LABlab(66.5 70.6 -50.1)
LCHlch(66.5 86.6 324.7)
OKLCHoklch(0.741 0.236 324.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#f06afd on white: 2.57:1
AA ✗ fail · AA-large · AAA
Aa
#f06afd on black: 8.19:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red94.1%
Green41.6%
Blue99.2%

CMYK percentages

Cyan5.1%
Magenta58.1%
Yellow0.0%
Key (black)0.8%

Color previews

#f06afd text on a black background

contrast 8.19:1

Card sample

#f06afd text on a white background

contrast 2.57:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f06afd

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f06afd in the Color Lab