Skip to content

#af27ff

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

RGB
175, 39, 255
HSL
278°, 100%, 58%
CMYK
31, 85, 0, 0
Luminance
0.1778

Every format

HEX#af27ff
RGBrgb(175, 39, 255)
HSLhsl(278, 100%, 58%)
CMYKcmyk(31%, 85%, 0%, 0%)
LABlab(49.2 82.1 -79.4)
LCHlch(49.2 114.2 316.0)
OKLCHoklch(0.600 0.285 307.6)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red68.6%
Green15.3%
Blue100.0%

CMYK percentages

Cyan31.4%
Magenta84.7%
Yellow0.0%
Key (black)0.0%

Color previews

#af27ff text on a black background

contrast 4.56:1

Card sample

#af27ff text on a white background

contrast 4.61:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af27ff

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #af27ff in the Color Lab