Skip to content

#af30ff

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

RGB
175, 48, 255
HSL
277°, 100%, 59%
CMYK
31, 81, 0, 0
Luminance
0.1845

Every format

HEX#af30ff
RGBrgb(175, 48, 255)
HSLhsl(277, 100%, 59%)
CMYKcmyk(31%, 81%, 0%, 0%)
LABlab(50.0 79.7 -78.1)
LCHlch(50.0 111.6 315.6)
OKLCHoklch(0.606 0.279 307.3)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af30ff on white: 4.48:1
AA ✗ fail · AA-large · AAA
Aa
#af30ff on black: 4.69:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green18.8%
Blue100.0%

CMYK percentages

Cyan31.4%
Magenta81.2%
Yellow0.0%
Key (black)0.0%

Color previews

#af30ff text on a black background

contrast 4.69:1

Card sample

#af30ff text on a white background

contrast 4.48:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af30ff

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #af30ff in the Color Lab