Skip to content

#af4ff4

a balanced, electric violet · warm · closest name: slateblue

RGB
175, 79, 244
HSL
275°, 88%, 63%
CMYK
28, 68, 0, 4
Luminance
0.2124

Every format

HEX#af4ff4
RGBrgb(175, 79, 244)
HSLhsl(275, 88%, 63%)
CMYKcmyk(28%, 68%, 0%, 4%)
LABlab(53.2 66.1 -66.8)
LCHlch(53.2 94.0 314.7)
OKLCHoklch(0.626 0.239 307.5)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af4ff4 on white: 4.00:1
AA ✗ fail · AA-large · AAA
Aa
#af4ff4 on black: 5.25:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green31.0%
Blue95.7%

CMYK percentages

Cyan28.3%
Magenta67.6%
Yellow0.0%
Key (black)4.3%

Color previews

#af4ff4 text on a black background

contrast 5.25:1

Card sample

#af4ff4 text on a white background

contrast 4.00:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af4ff4

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #af4ff4 in the Color Lab