Skip to content

#cb2fff

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

RGB
203, 47, 255
HSL
285°, 100%, 59%
CMYK
20, 82, 0, 0
Luminance
0.2195

Every format

HEX#cb2fff
RGBrgb(203, 47, 255)
HSLhsl(285, 100%, 59%)
CMYKcmyk(20%, 82%, 0%, 0%)
LABlab(54.0 84.3 -71.5)
LCHlch(54.0 110.5 319.7)
OKLCHoklch(0.641 0.287 315.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cb2fff on white: 3.90:1
AA ✗ fail · AA-large · AAA
Aa
#cb2fff on black: 5.39:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

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

CMYK percentages

Cyan20.4%
Magenta81.6%
Yellow0.0%
Key (black)0.0%

Color previews

#cb2fff text on a black background

contrast 5.39:1

Card sample

#cb2fff text on a white background

contrast 3.90:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cb2fff

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cb2fff in the Color Lab