Skip to content

#cd4bf2

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

RGB
205, 75, 242
HSL
287°, 87%, 62%
CMYK
15, 69, 0, 5
Luminance
0.2442

Every format

HEX#cd4bf2
RGBrgb(205, 75, 242)
HSLhsl(287, 87%, 62%)
CMYKcmyk(15%, 69%, 0%, 5%)
LABlab(56.5 73.4 -60.1)
LCHlch(56.5 94.9 320.7)
OKLCHoklch(0.657 0.251 317.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cd4bf2 on white: 3.57:1
AA ✗ fail · AA-large · AAA
Aa
#cd4bf2 on black: 5.88:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red80.4%
Green29.4%
Blue94.9%

CMYK percentages

Cyan15.3%
Magenta69.0%
Yellow0.0%
Key (black)5.1%

Color previews

#cd4bf2 text on a black background

contrast 5.88:1

Card sample

#cd4bf2 text on a white background

contrast 3.57:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cd4bf2

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cd4bf2 in the Color Lab