Skip to content

#cb4afd

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

RGB
203, 74, 253
HSL
283°, 98%, 64%
CMYK
20, 71, 0, 1
Luminance
0.2469

Every format

HEX#cb4afd
RGBrgb(203, 74, 253)
HSLhsl(283, 98%, 64%)
CMYKcmyk(20%, 71%, 0%, 1%)
LABlab(56.8 75.5 -65.9)
LCHlch(56.8 100.2 318.9)
OKLCHoklch(0.661 0.261 314.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cb4afd on white: 3.54:1
AA ✗ fail · AA-large · AAA
Aa
#cb4afd on black: 5.94:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red79.6%
Green29.0%
Blue99.2%

CMYK percentages

Cyan19.8%
Magenta70.8%
Yellow0.0%
Key (black)0.8%

Color previews

#cb4afd text on a black background

contrast 5.94:1

Card sample

#cb4afd text on a white background

contrast 3.54:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cb4afd

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cb4afd in the Color Lab