Skip to content

#af2cee

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

RGB
175, 44, 238
HSL
281°, 85%, 55%
CMYK
27, 82, 0, 7
Luminance
0.1709

Every format

HEX#af2cee
RGBrgb(175, 44, 238)
HSLhsl(281, 85%, 55%)
CMYKcmyk(27%, 82%, 0%, 7%)
LABlab(48.4 77.5 -71.3)
LCHlch(48.4 105.3 317.4)
OKLCHoklch(0.590 0.268 311.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af2cee on white: 4.75:1
AA ✓ pass · AA-large · AAA
Aa
#af2cee on black: 4.42:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

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

CMYK percentages

Cyan26.5%
Magenta81.5%
Yellow0.0%
Key (black)6.7%

Color previews

#af2cee text on a black background

contrast 4.42:1

Card sample

#af2cee text on a white background

contrast 4.75:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af2cee

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #af2cee in the Color Lab