Skip to content

#ca3dfb

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

RGB
202, 61, 251
HSL
285°, 96%, 61%
CMYK
20, 76, 0, 2
Luminance
0.2286

Every format

HEX#ca3dfb
RGBrgb(202, 61, 251)
HSLhsl(285, 96%, 61%)
CMYKcmyk(20%, 76%, 0%, 2%)
LABlab(54.9 79.4 -67.7)
LCHlch(54.9 104.4 319.5)
OKLCHoklch(0.647 0.272 315.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ca3dfb on white: 3.77:1
AA ✗ fail · AA-large · AAA
Aa
#ca3dfb on black: 5.57:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red79.2%
Green23.9%
Blue98.4%

CMYK percentages

Cyan19.5%
Magenta75.7%
Yellow0.0%
Key (black)1.6%

Color previews

#ca3dfb text on a black background

contrast 5.57:1

Card sample

#ca3dfb text on a white background

contrast 3.77:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ca3dfb

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ca3dfb in the Color Lab