Skip to content

#ce4afb

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

RGB
206, 74, 251
HSL
285°, 96%, 64%
CMYK
18, 71, 0, 2
Luminance
0.2498

Every format

HEX#ce4afb
RGBrgb(206, 74, 251)
HSLhsl(285, 96%, 64%)
CMYKcmyk(18%, 71%, 0%, 2%)
LABlab(57.1 75.7 -64.3)
LCHlch(57.1 99.3 319.7)
OKLCHoklch(0.663 0.260 316.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ce4afb on white: 3.50:1
AA ✗ fail · AA-large · AAA
Aa
#ce4afb on black: 6.00:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red80.8%
Green29.0%
Blue98.4%

CMYK percentages

Cyan17.9%
Magenta70.5%
Yellow0.0%
Key (black)1.6%

Color previews

#ce4afb text on a black background

contrast 6.00:1

Card sample

#ce4afb text on a white background

contrast 3.50:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ce4afb

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ce4afb in the Color Lab