Skip to content

#af2cfb

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

RGB
175, 44, 251
HSL
278°, 96%, 58%
CMYK
30, 83, 0, 2
Luminance
0.1788

Every format

HEX#af2cfb
RGBrgb(175, 44, 251)
HSLhsl(278, 96%, 58%)
CMYKcmyk(30%, 83%, 0%, 2%)
LABlab(49.4 80.0 -77.0)
LCHlch(49.4 111.0 316.1)
OKLCHoklch(0.600 0.279 308.3)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af2cfb on white: 4.59:1
AA ✓ pass · AA-large · AAA
Aa
#af2cfb on black: 4.58:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green17.3%
Blue98.4%

CMYK percentages

Cyan30.3%
Magenta82.5%
Yellow0.0%
Key (black)1.6%

Color previews

#af2cfb text on a black background

contrast 4.58:1

Card sample

#af2cfb text on a white background

contrast 4.59:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af2cfb

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #af2cfb in the Color Lab