Skip to content

#f27dfd

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

RGB
242, 125, 253
HSL
295°, 97%, 74%
CMYK
4, 51, 0, 1
Luminance
0.4064

Every format

HEX#f27dfd
RGBrgb(242, 125, 253)
HSLhsl(295, 97%, 74%)
CMYKcmyk(4%, 51%, 0%, 1%)
LABlab(69.9 62.5 -44.6)
LCHlch(69.9 76.8 324.5)
OKLCHoklch(0.767 0.210 324.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#f27dfd on white: 2.30:1
AA ✗ fail · AA-large · AAA
Aa
#f27dfd on black: 9.13:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red94.9%
Green49.0%
Blue99.2%

CMYK percentages

Cyan4.3%
Magenta50.6%
Yellow0.0%
Key (black)0.8%

Color previews

#f27dfd text on a black background

contrast 9.13:1

Card sample

#f27dfd text on a white background

contrast 2.30:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f27dfd

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f27dfd in the Color Lab