Skip to content

#af4cea

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

RGB
175, 76, 234
HSL
278°, 79%, 61%
CMYK
25, 68, 0, 8
Luminance
0.2022

Every format

HEX#af4cea
RGBrgb(175, 76, 234)
HSLhsl(278, 79%, 61%)
CMYKcmyk(25%, 68%, 0%, 8%)
LABlab(52.1 65.3 -63.0)
LCHlch(52.1 90.7 316.0)
OKLCHoklch(0.616 0.233 310.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af4cea on white: 4.16:1
AA ✗ fail · AA-large · AAA
Aa
#af4cea on black: 5.04:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green29.8%
Blue91.8%

CMYK percentages

Cyan25.2%
Magenta67.5%
Yellow0.0%
Key (black)8.2%

Color previews

#af4cea text on a black background

contrast 5.04:1

Card sample

#af4cea text on a white background

contrast 4.16:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af4cea

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #af4cea in the Color Lab