Skip to content

#f068df

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

RGB
240, 104, 223
HSL
308°, 82%, 68%
CMYK
0, 57, 7, 6
Luminance
0.3375

Every format

HEX#f068df
RGBrgb(240, 104, 223)
HSLhsl(308, 82%, 68%)
CMYKcmyk(0%, 57%, 7%, 6%)
LABlab(64.8 66.5 -36.1)
LCHlch(64.8 75.7 331.5)
OKLCHoklch(0.724 0.215 332.6)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#f068df on white: 2.71:1
AA ✗ fail · AA-large · AAA
Aa
#f068df on black: 7.75:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red94.1%
Green40.8%
Blue87.5%

CMYK percentages

Cyan0.0%
Magenta56.7%
Yellow7.1%
Key (black)5.9%

Color previews

#f068df text on a black background

contrast 7.75:1

Card sample

#f068df text on a white background

contrast 2.71:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f068df

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f068df in the Color Lab