Skip to content

#af2cef

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

RGB
175, 44, 239
HSL
280°, 86%, 56%
CMYK
27, 82, 0, 6
Luminance
0.1715

Every format

HEX#af2cef
RGBrgb(175, 44, 239)
HSLhsl(280, 86%, 56%)
CMYKcmyk(27%, 82%, 0%, 6%)
LABlab(48.5 77.7 -71.7)
LCHlch(48.5 105.7 317.3)
OKLCHoklch(0.591 0.269 310.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af2cef on white: 4.74:1
AA ✓ pass · AA-large · AAA
Aa
#af2cef on black: 4.43:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green17.3%
Blue93.7%

CMYK percentages

Cyan26.8%
Magenta81.6%
Yellow0.0%
Key (black)6.3%

Color previews

#af2cef text on a black background

contrast 4.43:1

Card sample

#af2cef text on a white background

contrast 4.74:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(175, 44, 239, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(175, 44, 239, 0.45);
Border & gradient
Gradient panel
border: 3px solid #af2cef;
background: linear-gradient(135deg, #af2cef, #EF2CAD);

Monochromatic scale

Palettes built from #af2cef

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #af2cef in the Color Lab