Skip to content

#af2cfa

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

RGB
175, 44, 250
HSL
278°, 95%, 58%
CMYK
30, 82, 0, 2
Luminance
0.1782

Every format

HEX#af2cfa
RGBrgb(175, 44, 250)
HSLhsl(278, 95%, 58%)
CMYKcmyk(30%, 82%, 0%, 2%)
LABlab(49.3 79.8 -76.5)
LCHlch(49.3 110.6 316.2)
OKLCHoklch(0.599 0.278 308.5)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af2cfa on white: 4.60:1
AA ✓ pass · AA-large · AAA
Aa
#af2cfa on black: 4.56:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green17.3%
Blue98.0%

CMYK percentages

Cyan30.0%
Magenta82.4%
Yellow0.0%
Key (black)2.0%

Color previews

#af2cfa text on a black background

contrast 4.56:1

Card sample

#af2cfa text on a white background

contrast 4.60:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af2cfa

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #af2cfa in the Color Lab