Skip to content

#cc1af2

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

RGB
204, 26, 242
HSL
289°, 89%, 53%
CMYK
16, 89, 0, 5
Luminance
0.1999

Every format

HEX#cc1af2
RGBrgb(204, 26, 242)
HSLhsl(289, 89%, 53%)
CMYKcmyk(16%, 89%, 0%, 5%)
LABlab(51.8 86.3 -67.7)
LCHlch(51.8 109.7 321.9)
OKLCHoklch(0.624 0.290 318.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cc1af2 on white: 4.20:1
AA ✗ fail · AA-large · AAA
Aa
#cc1af2 on black: 5.00:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red80.0%
Green10.2%
Blue94.9%

CMYK percentages

Cyan15.7%
Magenta89.3%
Yellow0.0%
Key (black)5.1%

Color previews

#cc1af2 text on a black background

contrast 5.00:1

Card sample

#cc1af2 text on a white background

contrast 4.20:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(204, 26, 242, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(204, 26, 242, 0.45);
Border & gradient
Gradient panel
border: 3px solid #cc1af2;
background: linear-gradient(135deg, #cc1af2, #F21A88);

Monochromatic scale

Palettes built from #cc1af2

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cc1af2 in the Color Lab