Skip to content

#ca4dfb

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

RGB
202, 77, 251
HSL
283°, 96%, 64%
CMYK
20, 69, 0, 2
Luminance
0.2483

Every format

HEX#ca4dfb
RGBrgb(202, 77, 251)
HSLhsl(283, 96%, 64%)
CMYKcmyk(20%, 69%, 0%, 2%)
LABlab(56.9 73.8 -64.5)
LCHlch(56.9 98.0 318.8)
OKLCHoklch(0.661 0.256 314.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ca4dfb on white: 3.52:1
AA ✗ fail · AA-large · AAA
Aa
#ca4dfb on black: 5.97:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red79.2%
Green30.2%
Blue98.4%

CMYK percentages

Cyan19.5%
Magenta69.3%
Yellow0.0%
Key (black)1.6%

Color previews

#ca4dfb text on a black background

contrast 5.97:1

Card sample

#ca4dfb text on a white background

contrast 3.52:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ca4dfb

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ca4dfb in the Color Lab