Skip to content

#cb2eff

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

RGB
203, 46, 255
HSL
285°, 100%, 59%
CMYK
20, 82, 0, 0
Luminance
0.2187

Every format

HEX#cb2eff
RGBrgb(203, 46, 255)
HSLhsl(285, 100%, 59%)
CMYKcmyk(20%, 82%, 0%, 0%)
LABlab(53.9 84.5 -71.6)
LCHlch(53.9 110.8 319.7)
OKLCHoklch(0.641 0.288 315.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cb2eff on white: 3.91:1
AA ✗ fail · AA-large · AAA
Aa
#cb2eff on black: 5.37:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red79.6%
Green18.0%
Blue100.0%

CMYK percentages

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

Color previews

#cb2eff text on a black background

contrast 5.37:1

Card sample

#cb2eff text on a white background

contrast 3.91:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cb2eff

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cb2eff in the Color Lab