Skip to content

#af2dee

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

RGB
175, 45, 238
HSL
280°, 85%, 56%
CMYK
27, 81, 0, 7
Luminance
0.1716

Every format

HEX#af2dee
RGBrgb(175, 45, 238)
HSLhsl(280, 85%, 56%)
CMYKcmyk(27%, 81%, 0%, 7%)
LABlab(48.5 77.2 -71.1)
LCHlch(48.5 105.0 317.4)
OKLCHoklch(0.591 0.267 311.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af2dee on white: 4.74:1
AA ✓ pass · AA-large · AAA
Aa
#af2dee on black: 4.43:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green17.6%
Blue93.3%

CMYK percentages

Cyan26.5%
Magenta81.1%
Yellow0.0%
Key (black)6.7%

Color previews

#af2dee text on a black background

contrast 4.43:1

Card sample

#af2dee text on a white background

contrast 4.74:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af2dee

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #af2dee in the Color Lab