Skip to content

#ce28cf

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

RGB
206, 40, 207
HSL
300°, 68%, 48%
CMYK
1, 81, 0, 19
Luminance
0.1914

Every format

HEX#ce28cf
RGBrgb(206, 40, 207)
HSLhsl(300, 68%, 48%)
CMYKcmyk(1%, 81%, 0%, 19%)
LABlab(50.9 78.5 -49.4)
LCHlch(50.9 92.7 327.8)
OKLCHoklch(0.611 0.258 327.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ce28cf on white: 4.35:1
AA ✗ fail · AA-large · AAA
Aa
#ce28cf on black: 4.83:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red80.8%
Green15.7%
Blue81.2%

CMYK percentages

Cyan0.5%
Magenta80.7%
Yellow0.0%
Key (black)18.8%

Color previews

#ce28cf text on a black background

contrast 4.83:1

Card sample

#ce28cf text on a white background

contrast 4.35:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(206, 40, 207, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(206, 40, 207, 0.45);
Border & gradient
Gradient panel
border: 3px solid #ce28cf;
background: linear-gradient(135deg, #ce28cf, #CF2861);

Monochromatic scale

Palettes built from #ce28cf

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ce28cf in the Color Lab