Skip to content

#c90dfb

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

RGB
201, 13, 251
HSL
287°, 97%, 52%
CMYK
20, 95, 0, 2
Luminance
0.1967

Every format

HEX#c90dfb
RGBrgb(201, 13, 251)
HSLhsl(287, 97%, 52%)
CMYKcmyk(20%, 95%, 0%, 2%)
LABlab(51.5 89.0 -73.3)
LCHlch(51.5 115.3 320.5)
OKLCHoklch(0.623 0.300 316.3)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#c90dfb on white: 4.26:1
AA ✗ fail · AA-large · AAA
Aa
#c90dfb on black: 4.93:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red78.8%
Green5.1%
Blue98.4%

CMYK percentages

Cyan19.9%
Magenta94.8%
Yellow0.0%
Key (black)1.6%

Color previews

#c90dfb text on a black background

contrast 4.93:1

Card sample

#c90dfb text on a white background

contrast 4.26:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(201, 13, 251, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(201, 13, 251, 0.45);
Border & gradient
Gradient panel
border: 3px solid #c90dfb;
background: linear-gradient(135deg, #c90dfb, #FB0D8E);

Monochromatic scale

Palettes built from #c90dfb

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #c90dfb in the Color Lab