Skip to content

#af1dfb

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

RGB
175, 29, 251
HSL
280°, 97%, 55%
CMYK
30, 88, 0, 2
Luminance
0.1696

Every format

HEX#af1dfb
RGBrgb(175, 29, 251)
HSLhsl(280, 97%, 55%)
CMYKcmyk(30%, 88%, 0%, 2%)
LABlab(48.2 83.4 -78.8)
LCHlch(48.2 114.8 316.6)
OKLCHoklch(0.592 0.288 308.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af1dfb on white: 4.78:1
AA ✓ pass · AA-large · AAA
Aa
#af1dfb on black: 4.39:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green11.4%
Blue98.4%

CMYK percentages

Cyan30.3%
Magenta88.4%
Yellow0.0%
Key (black)1.6%

Color previews

#af1dfb text on a black background

contrast 4.39:1

Card sample

#af1dfb text on a white background

contrast 4.78:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af1dfb

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #af1dfb in the Color Lab