Skip to content

#ff4ce2

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

RGB
255, 76, 226
HSL
310°, 100%, 65%
CMYK
0, 70, 11, 0
Luminance
0.3192

Every format

HEX#ff4ce2
RGBrgb(255, 76, 226)
HSLhsl(310, 100%, 65%)
CMYKcmyk(0%, 70%, 11%, 0%)
LABlab(63.3 81.3 -40.0)
LCHlch(63.3 90.6 333.8)
OKLCHoklch(0.718 0.261 335.3)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ff4ce2 on white: 2.84:1
AA ✗ fail · AA-large · AAA
Aa
#ff4ce2 on black: 7.38:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red100.0%
Green29.8%
Blue88.6%

CMYK percentages

Cyan0.0%
Magenta70.2%
Yellow11.4%
Key (black)0.0%

Color previews

#ff4ce2 text on a black background

contrast 7.38:1

Card sample

#ff4ce2 text on a white background

contrast 2.84:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ff4ce2

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ff4ce2 in the Color Lab