Skip to content

#af2feb

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

RGB
175, 47, 235
HSL
281°, 83%, 55%
CMYK
26, 80, 0, 8
Luminance
0.1715

Every format

HEX#af2feb
RGBrgb(175, 47, 235)
HSLhsl(281, 83%, 55%)
CMYKcmyk(26%, 80%, 0%, 8%)
LABlab(48.4 76.1 -69.5)
LCHlch(48.4 103.0 317.6)
OKLCHoklch(0.590 0.263 311.6)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red68.6%
Green18.4%
Blue92.2%

CMYK percentages

Cyan25.5%
Magenta80.0%
Yellow0.0%
Key (black)7.8%

Color previews

#af2feb text on a black background

contrast 4.43:1

Card sample

#af2feb text on a white background

contrast 4.74:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af2feb

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #af2feb in the Color Lab