Skip to content

#af66cc

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

RGB
175, 102, 204
HSL
283°, 50%, 60%
CMYK
14, 50, 0, 20
Luminance
0.2298

Every format

HEX#af66cc
RGBrgb(175, 102, 204)
HSLhsl(283, 50%, 60%)
CMYKcmyk(14%, 50%, 0%, 20%)
LABlab(55.0 46.3 -41.3)
LCHlch(55.0 62.1 318.3)
OKLCHoklch(0.632 0.164 315.6)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af66cc on white: 3.75:1
AA ✗ fail · AA-large · AAA
Aa
#af66cc on black: 5.60:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green40.0%
Blue80.0%

CMYK percentages

Cyan14.2%
Magenta50.0%
Yellow0.0%
Key (black)20.0%

Color previews

#af66cc text on a black background

contrast 5.60:1

Card sample

#af66cc text on a white background

contrast 3.75:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af66cc

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #af66cc in the Color Lab