Skip to content

#ca0fdf

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

RGB
202, 15, 223
HSL
294°, 87%, 47%
CMYK
9, 93, 0, 13
Luminance
0.1823

Every format

HEX#ca0fdf
RGBrgb(202, 15, 223)
HSLhsl(294, 87%, 47%)
CMYKcmyk(9%, 93%, 0%, 13%)
LABlab(49.8 84.3 -60.3)
LCHlch(49.8 103.7 324.4)
OKLCHoklch(0.605 0.281 323.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ca0fdf on white: 4.52:1
AA ✓ pass · AA-large · AAA
Aa
#ca0fdf on black: 4.65:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red79.2%
Green5.9%
Blue87.5%

CMYK percentages

Cyan9.4%
Magenta93.3%
Yellow0.0%
Key (black)12.5%

Color previews

#ca0fdf text on a black background

contrast 4.65:1

Card sample

#ca0fdf text on a white background

contrast 4.52:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(202, 15, 223, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(202, 15, 223, 0.45);
Border & gradient
Gradient panel
border: 3px solid #ca0fdf;
background: linear-gradient(135deg, #ca0fdf, #DF0F6A);

Monochromatic scale

Palettes built from #ca0fdf

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ca0fdf in the Color Lab