Skip to content

#cb2afe

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

RGB
203, 42, 254
HSL
286°, 99%, 58%
CMYK
20, 84, 0, 0
Luminance
0.2151

Every format

HEX#cb2afe
RGBrgb(203, 42, 254)
HSLhsl(286, 99%, 58%)
CMYKcmyk(20%, 84%, 0%, 0%)
LABlab(53.5 85.3 -71.7)
LCHlch(53.5 111.4 319.9)
OKLCHoklch(0.638 0.290 315.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cb2afe on white: 3.96:1
AA ✗ fail · AA-large · AAA
Aa
#cb2afe on black: 5.30:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red79.6%
Green16.5%
Blue99.6%

CMYK percentages

Cyan20.1%
Magenta83.5%
Yellow0.0%
Key (black)0.4%

Color previews

#cb2afe text on a black background

contrast 5.30:1

Card sample

#cb2afe text on a white background

contrast 3.96:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cb2afe

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cb2afe in the Color Lab