Skip to content

#cb4dfd

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

RGB
203, 77, 253
HSL
283°, 98%, 65%
CMYK
20, 70, 0, 1
Luminance
0.2510

Every format

HEX#cb4dfd
RGBrgb(203, 77, 253)
HSLhsl(283, 98%, 65%)
CMYKcmyk(20%, 70%, 0%, 1%)
LABlab(57.2 74.3 -65.2)
LCHlch(57.2 98.9 318.7)
OKLCHoklch(0.664 0.258 314.5)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cb4dfd on white: 3.49:1
AA ✗ fail · AA-large · AAA
Aa
#cb4dfd on black: 6.02:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red79.6%
Green30.2%
Blue99.2%

CMYK percentages

Cyan19.8%
Magenta69.6%
Yellow0.0%
Key (black)0.8%

Color previews

#cb4dfd text on a black background

contrast 6.02:1

Card sample

#cb4dfd text on a white background

contrast 3.49:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cb4dfd

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cb4dfd in the Color Lab