Skip to content

#cd3dfb

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

RGB
205, 61, 251
HSL
286°, 96%, 61%
CMYK
18, 76, 0, 2
Luminance
0.2328

Every format

HEX#cd3dfb
RGBrgb(205, 61, 251)
HSLhsl(286, 96%, 61%)
CMYKcmyk(18%, 76%, 0%, 2%)
LABlab(55.4 79.9 -67.0)
LCHlch(55.4 104.3 320.0)
OKLCHoklch(0.651 0.273 316.3)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cd3dfb on white: 3.71:1
AA ✗ fail · AA-large · AAA
Aa
#cd3dfb on black: 5.66:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red80.4%
Green23.9%
Blue98.4%

CMYK percentages

Cyan18.3%
Magenta75.7%
Yellow0.0%
Key (black)1.6%

Color previews

#cd3dfb text on a black background

contrast 5.66:1

Card sample

#cd3dfb text on a white background

contrast 3.71:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cd3dfb

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cd3dfb in the Color Lab