Skip to content

#af0def

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

RGB
175, 13, 239
HSL
283°, 90%, 49%
CMYK
27, 95, 0, 6
Luminance
0.1563

Every format

HEX#af0def
RGBrgb(175, 13, 239)
HSLhsl(283, 90%, 49%)
CMYKcmyk(27%, 95%, 0%, 6%)
LABlab(46.5 83.5 -74.9)
LCHlch(46.5 112.1 318.1)
OKLCHoklch(0.578 0.285 311.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af0def on white: 5.09:1
AA ✓ pass · AA-large · AAA
Aa
#af0def on black: 4.13:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green5.1%
Blue93.7%

CMYK percentages

Cyan26.8%
Magenta94.6%
Yellow0.0%
Key (black)6.3%

Color previews

#af0def text on a black background

contrast 4.13:1

Card sample

#af0def text on a white background

contrast 5.09:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af0def

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #af0def in the Color Lab