Skip to content

#cb2ff7

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

RGB
203, 47, 247
HSL
287°, 93%, 58%
CMYK
18, 81, 0, 3
Luminance
0.2144

Every format

HEX#cb2ff7
RGBrgb(203, 47, 247)
HSLhsl(287, 93%, 58%)
CMYKcmyk(18%, 81%, 0%, 3%)
LABlab(53.4 82.8 -67.9)
LCHlch(53.4 107.1 320.7)
OKLCHoklch(0.636 0.281 317.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cb2ff7 on white: 3.97:1
AA ✗ fail · AA-large · AAA
Aa
#cb2ff7 on black: 5.29:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red79.6%
Green18.4%
Blue96.9%

CMYK percentages

Cyan17.8%
Magenta81.0%
Yellow0.0%
Key (black)3.1%

Color previews

#cb2ff7 text on a black background

contrast 5.29:1

Card sample

#cb2ff7 text on a white background

contrast 3.97:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cb2ff7

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cb2ff7 in the Color Lab