Skip to content

#cb4afb

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

RGB
203, 74, 251
HSL
284°, 96%, 64%
CMYK
19, 71, 0, 2
Luminance
0.2456

Every format

HEX#cb4afb
RGBrgb(203, 74, 251)
HSLhsl(284, 96%, 64%)
CMYKcmyk(19%, 71%, 0%, 2%)
LABlab(56.6 75.1 -65.0)
LCHlch(56.6 99.3 319.1)
OKLCHoklch(0.659 0.259 315.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cb4afb on white: 3.55:1
AA ✗ fail · AA-large · AAA
Aa
#cb4afb on black: 5.91:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red79.6%
Green29.0%
Blue98.4%

CMYK percentages

Cyan19.1%
Magenta70.5%
Yellow0.0%
Key (black)1.6%

Color previews

#cb4afb text on a black background

contrast 5.91:1

Card sample

#cb4afb text on a white background

contrast 3.55:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cb4afb

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cb4afb in the Color Lab