Skip to content

#cb2cfe

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

RGB
203, 44, 254
HSL
285°, 99%, 58%
CMYK
20, 83, 0, 0
Luminance
0.2165

Every format

HEX#cb2cfe
RGBrgb(203, 44, 254)
HSLhsl(285, 99%, 58%)
CMYKcmyk(20%, 83%, 0%, 0%)
LABlab(53.7 84.8 -71.4)
LCHlch(53.7 110.9 319.9)
OKLCHoklch(0.639 0.289 315.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cb2cfe on white: 3.94:1
AA ✗ fail · AA-large · AAA
Aa
#cb2cfe on black: 5.33:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red79.6%
Green17.3%
Blue99.6%

CMYK percentages

Cyan20.1%
Magenta82.7%
Yellow0.0%
Key (black)0.4%

Color previews

#cb2cfe text on a black background

contrast 5.33:1

Card sample

#cb2cfe text on a white background

contrast 3.94:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(203, 44, 254, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(203, 44, 254, 0.45);
Border & gradient
Gradient panel
border: 3px solid #cb2cfe;
background: linear-gradient(135deg, #cb2cfe, #FE2CA5);

Monochromatic scale

Palettes built from #cb2cfe

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cb2cfe in the Color Lab