Skip to content

#c22dfd

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

RGB
194, 45, 253
HSL
283°, 98%, 58%
CMYK
23, 82, 0, 1
Luminance
0.2044

Every format

HEX#c22dfd
RGBrgb(194, 45, 253)
HSLhsl(283, 98%, 58%)
CMYKcmyk(23%, 82%, 0%, 1%)
LABlab(52.3 83.0 -73.1)
LCHlch(52.3 110.6 318.6)
OKLCHoklch(0.627 0.285 313.3)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#c22dfd on white: 4.13:1
AA ✗ fail · AA-large · AAA
Aa
#c22dfd on black: 5.09:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red76.1%
Green17.6%
Blue99.2%

CMYK percentages

Cyan23.3%
Magenta82.2%
Yellow0.0%
Key (black)0.8%

Color previews

#c22dfd text on a black background

contrast 5.09:1

Card sample

#c22dfd text on a white background

contrast 4.13:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #c22dfd

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #c22dfd in the Color Lab