Skip to content

#af10f0

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

RGB
175, 16, 240
HSL
283°, 88%, 50%
CMYK
27, 93, 0, 6
Luminance
0.1578

Every format

HEX#af10f0
RGBrgb(175, 16, 240)
HSLhsl(283, 88%, 50%)
CMYKcmyk(27%, 93%, 0%, 6%)
LABlab(46.7 83.3 -75.1)
LCHlch(46.7 112.2 318.0)
OKLCHoklch(0.579 0.285 311.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af10f0 on white: 5.05:1
AA ✓ pass · AA-large · AAA
Aa
#af10f0 on black: 4.16:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green6.3%
Blue94.1%

CMYK percentages

Cyan27.1%
Magenta93.3%
Yellow0.0%
Key (black)5.9%

Color previews

#af10f0 text on a black background

contrast 4.16:1

Card sample

#af10f0 text on a white background

contrast 5.05:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af10f0

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #af10f0 in the Color Lab