Skip to content

#af25d2

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

RGB
175, 37, 210
HSL
288°, 70%, 48%
CMYK
17, 82, 0, 18
Luminance
0.1509

Every format

HEX#af25d2
RGBrgb(175, 37, 210)
HSLhsl(288, 70%, 48%)
CMYKcmyk(17%, 82%, 0%, 18%)
LABlab(45.8 74.1 -59.5)
LCHlch(45.8 95.1 321.2)
OKLCHoklch(0.566 0.251 318.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af25d2 on white: 5.23:1
AA ✓ pass · AA-large · AAA
Aa
#af25d2 on black: 4.02:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green14.5%
Blue82.4%

CMYK percentages

Cyan16.7%
Magenta82.4%
Yellow0.0%
Key (black)17.6%

Color previews

#af25d2 text on a black background

contrast 4.02:1

Card sample

#af25d2 text on a white background

contrast 5.23:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af25d2

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #af25d2 in the Color Lab