Skip to content

#af3cea

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

RGB
175, 60, 234
HSL
280°, 81%, 58%
CMYK
25, 74, 0, 8
Luminance
0.1829

Every format

HEX#af3cea
RGBrgb(175, 60, 234)
HSLhsl(280, 81%, 58%)
CMYKcmyk(25%, 74%, 0%, 8%)
LABlab(49.8 71.6 -66.6)
LCHlch(49.8 97.8 317.1)
OKLCHoklch(0.600 0.250 311.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af3cea on white: 4.51:1
AA ✓ pass · AA-large · AAA
Aa
#af3cea on black: 4.66:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green23.5%
Blue91.8%

CMYK percentages

Cyan25.2%
Magenta74.4%
Yellow0.0%
Key (black)8.2%

Color previews

#af3cea text on a black background

contrast 4.66:1

Card sample

#af3cea text on a white background

contrast 4.51:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af3cea

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #af3cea in the Color Lab