Skip to content

#cb2cff

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

RGB
203, 44, 255
HSL
285°, 100%, 59%
CMYK
20, 83, 0, 0
Luminance
0.2172

Every format

HEX#cb2cff
RGBrgb(203, 44, 255)
HSLhsl(285, 100%, 59%)
CMYKcmyk(20%, 83%, 0%, 0%)
LABlab(53.7 85.0 -71.9)
LCHlch(53.7 111.3 319.8)
OKLCHoklch(0.640 0.289 315.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cb2cff on white: 3.93:1
AA ✗ fail · AA-large · AAA
Aa
#cb2cff on black: 5.34:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red79.6%
Green17.3%
Blue100.0%

CMYK percentages

Cyan20.4%
Magenta82.7%
Yellow0.0%
Key (black)0.0%

Color previews

#cb2cff text on a black background

contrast 5.34:1

Card sample

#cb2cff text on a white background

contrast 3.93:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cb2cff

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cb2cff in the Color Lab