Skip to content

#f26cfd

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

RGB
242, 108, 253
HSL
295°, 97%, 71%
CMYK
4, 57, 0, 1
Luminance
0.3669

Every format

HEX#f26cfd
RGBrgb(242, 108, 253)
HSLhsl(295, 97%, 71%)
CMYKcmyk(4%, 57%, 0%, 1%)
LABlab(67.0 70.3 -49.1)
LCHlch(67.0 85.7 325.0)
OKLCHoklch(0.746 0.235 324.6)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#f26cfd on white: 2.52:1
AA ✗ fail · AA-large · AAA
Aa
#f26cfd on black: 8.34:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red94.9%
Green42.4%
Blue99.2%

CMYK percentages

Cyan4.3%
Magenta57.3%
Yellow0.0%
Key (black)0.8%

Color previews

#f26cfd text on a black background

contrast 8.34:1

Card sample

#f26cfd text on a white background

contrast 2.52:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f26cfd

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f26cfd in the Color Lab