Skip to content

#af9ce4

a light, vivid violet · warm · closest name: plum

RGB
175, 156, 228
HSL
256°, 57%, 75%
CMYK
23, 32, 0, 11
Luminance
0.3849

Every format

HEX#af9ce4
RGBrgb(175, 156, 228)
HSLhsl(256, 57%, 75%)
CMYKcmyk(23%, 32%, 0%, 11%)
LABlab(68.4 21.8 -33.9)
LCHlch(68.4 40.3 302.8)
OKLCHoklch(0.736 0.104 295.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af9ce4 on white: 2.41:1
AA ✗ fail · AA-large · AAA
Aa
#af9ce4 on black: 8.70:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green61.2%
Blue89.4%

CMYK percentages

Cyan23.2%
Magenta31.6%
Yellow0.0%
Key (black)10.6%

Color previews

#af9ce4 text on a black background

contrast 8.70:1

Card sample

#af9ce4 text on a white background

contrast 2.41:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af9ce4

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #af9ce4 in the Color Lab