Skip to content

#af5fdf

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

RGB
175, 95, 223
HSL
278°, 67%, 62%
CMYK
22, 57, 0, 13
Luminance
0.2263

Every format

HEX#af5fdf
RGBrgb(175, 95, 223)
HSLhsl(278, 67%, 62%)
CMYKcmyk(22%, 57%, 0%, 13%)
LABlab(54.7 54.0 -52.6)
LCHlch(54.7 75.4 315.7)
OKLCHoklch(0.632 0.196 310.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af5fdf on white: 3.80:1
AA ✗ fail · AA-large · AAA
Aa
#af5fdf on black: 5.53:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green37.3%
Blue87.5%

CMYK percentages

Cyan21.5%
Magenta57.4%
Yellow0.0%
Key (black)12.5%

Color previews

#af5fdf text on a black background

contrast 5.53:1

Card sample

#af5fdf text on a white background

contrast 3.80:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af5fdf

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #af5fdf in the Color Lab