Skip to content

#af48df

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

RGB
175, 72, 223
HSL
281°, 70%, 58%
CMYK
22, 68, 0, 13
Luminance
0.1908

Every format

HEX#af48df
RGBrgb(175, 72, 223)
HSLhsl(281, 70%, 58%)
CMYKcmyk(22%, 68%, 0%, 13%)
LABlab(50.8 64.7 -58.9)
LCHlch(50.8 87.5 317.7)
OKLCHoklch(0.604 0.227 313.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af48df on white: 4.36:1
AA ✗ fail · AA-large · AAA
Aa
#af48df on black: 4.82:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green28.2%
Blue87.5%

CMYK percentages

Cyan21.5%
Magenta67.7%
Yellow0.0%
Key (black)12.5%

Color previews

#af48df text on a black background

contrast 4.82:1

Card sample

#af48df text on a white background

contrast 4.36:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af48df

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #af48df in the Color Lab