Skip to content

#af7eca

a balanced, soft violet · warm · closest name: plum

RGB
175, 126, 202
HSL
279°, 42%, 64%
CMYK
13, 38, 0, 21
Luminance
0.2830

Every format

HEX#af7eca
RGBrgb(175, 126, 202)
HSLhsl(279, 42%, 64%)
CMYKcmyk(13%, 38%, 0%, 21%)
LABlab(60.2 32.8 -32.1)
LCHlch(60.2 45.9 315.6)
OKLCHoklch(0.670 0.121 312.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af7eca on white: 3.15:1
AA ✗ fail · AA-large · AAA
Aa
#af7eca on black: 6.66:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green49.4%
Blue79.2%

CMYK percentages

Cyan13.4%
Magenta37.6%
Yellow0.0%
Key (black)20.8%

Color previews

#af7eca text on a black background

contrast 6.66:1

Card sample

#af7eca text on a white background

contrast 3.15:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af7eca

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #af7eca in the Color Lab