Skip to content

#ff0cfd

a balanced, electric magenta / pink · warm · “magenta”

RGB
255, 12, 253
HSL
301°, 100%, 52%
CMYK
0, 95, 1, 0
Luminance
0.2861

Every format

HEX#ff0cfd
RGBrgb(255, 12, 253)
HSLhsl(301, 100%, 52%)
CMYKcmyk(0%, 95%, 1%, 0%)
LABlab(60.4 97.3 -59.5)
LCHlch(60.4 114.0 328.5)
OKLCHoklch(0.702 0.319 328.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ff0cfd on white: 3.12:1
AA ✗ fail · AA-large · AAA
Aa
#ff0cfd on black: 6.72:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red100.0%
Green4.7%
Blue99.2%

CMYK percentages

Cyan0.0%
Magenta95.3%
Yellow0.8%
Key (black)0.0%

Color previews

#ff0cfd text on a black background

contrast 6.72:1

Card sample

#ff0cfd text on a white background

contrast 3.12:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ff0cfd

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ff0cfd in the Color Lab