Skip to content

#af4fc4

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

RGB
175, 79, 196
HSL
289°, 50%, 54%
CMYK
11, 60, 0, 23
Luminance
0.1869

Every format

HEX#af4fc4
RGBrgb(175, 79, 196)
HSLhsl(289, 50%, 54%)
CMYKcmyk(11%, 60%, 0%, 23%)
LABlab(50.3 56.2 -44.2)
LCHlch(50.3 71.5 321.8)
OKLCHoklch(0.596 0.192 320.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af4fc4 on white: 4.43:1
AA ✗ fail · AA-large · AAA
Aa
#af4fc4 on black: 4.74:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green31.0%
Blue76.9%

CMYK percentages

Cyan10.7%
Magenta59.7%
Yellow0.0%
Key (black)23.1%

Color previews

#af4fc4 text on a black background

contrast 4.74:1

Card sample

#af4fc4 text on a white background

contrast 4.43:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af4fc4

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #af4fc4 in the Color Lab