Skip to content

#af45f0

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

RGB
175, 69, 240
HSL
277°, 85%, 61%
CMYK
27, 71, 0, 6
Luminance
0.1966

Every format

HEX#af45f0
RGBrgb(175, 69, 240)
HSLhsl(277, 85%, 61%)
CMYKcmyk(27%, 71%, 0%, 6%)
LABlab(51.5 69.4 -67.4)
LCHlch(51.5 96.8 315.9)
OKLCHoklch(0.612 0.246 309.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af45f0 on white: 4.26:1
AA ✗ fail · AA-large · AAA
Aa
#af45f0 on black: 4.93:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green27.1%
Blue94.1%

CMYK percentages

Cyan27.1%
Magenta71.3%
Yellow0.0%
Key (black)5.9%

Color previews

#af45f0 text on a black background

contrast 4.93:1

Card sample

#af45f0 text on a white background

contrast 4.26:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af45f0

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #af45f0 in the Color Lab