Skip to content

#ff0cc2

a balanced, electric magenta / pink · warm · closest name: magenta

RGB
255, 12, 194
HSL
315°, 100%, 52%
CMYK
0, 95, 24, 0
Luminance
0.2542

Every format

HEX#ff0cc2
RGBrgb(255, 12, 194)
HSLhsl(315, 100%, 52%)
CMYKcmyk(0%, 95%, 24%, 0%)
LABlab(57.5 89.8 -30.9)
LCHlch(57.5 95.0 341.0)
OKLCHoklch(0.672 0.285 343.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ff0cc2 on white: 3.45:1
AA ✗ fail · AA-large · AAA
Aa
#ff0cc2 on black: 6.08:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red100.0%
Green4.7%
Blue76.1%

CMYK percentages

Cyan0.0%
Magenta95.3%
Yellow23.9%
Key (black)0.0%

Color previews

#ff0cc2 text on a black background

contrast 6.08:1

Card sample

#ff0cc2 text on a white background

contrast 3.45:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ff0cc2

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ff0cc2 in the Color Lab