Skip to content

#cb2cfc

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

RGB
203, 44, 252
HSL
286°, 97%, 58%
CMYK
19, 83, 0, 1
Luminance
0.2153

Every format

HEX#cb2cfc
RGBrgb(203, 44, 252)
HSLhsl(286, 97%, 58%)
CMYKcmyk(19%, 83%, 0%, 1%)
LABlab(53.5 84.5 -70.5)
LCHlch(53.5 110.0 320.1)
OKLCHoklch(0.638 0.287 316.1)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red79.6%
Green17.3%
Blue98.8%

CMYK percentages

Cyan19.4%
Magenta82.5%
Yellow0.0%
Key (black)1.2%

Color previews

#cb2cfc text on a black background

contrast 5.31:1

Card sample

#cb2cfc text on a white background

contrast 3.96:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cb2cfc

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cb2cfc in the Color Lab