Skip to content

#af7ecb

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

RGB
175, 126, 203
HSL
278°, 43%, 65%
CMYK
14, 38, 0, 20
Luminance
0.2835

Every format

HEX#af7ecb
RGBrgb(175, 126, 203)
HSLhsl(278, 43%, 65%)
CMYKcmyk(14%, 38%, 0%, 20%)
LABlab(60.2 33.0 -32.6)
LCHlch(60.2 46.4 315.3)
OKLCHoklch(0.670 0.122 312.6)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

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

CMYK percentages

Cyan13.8%
Magenta37.9%
Yellow0.0%
Key (black)20.4%

Color previews

#af7ecb text on a black background

contrast 6.67:1

Card sample

#af7ecb text on a white background

contrast 3.15:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af7ecb

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #af7ecb in the Color Lab