Skip to content

#af2bee

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

RGB
175, 43, 238
HSL
281°, 85%, 55%
CMYK
27, 82, 0, 7
Luminance
0.1701

Every format

HEX#af2bee
RGBrgb(175, 43, 238)
HSLhsl(281, 85%, 55%)
CMYKcmyk(27%, 82%, 0%, 7%)
LABlab(48.3 77.8 -71.4)
LCHlch(48.3 105.6 317.4)
OKLCHoklch(0.590 0.269 311.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af2bee on white: 4.77:1
AA ✓ pass · AA-large · AAA
Aa
#af2bee on black: 4.40:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green16.9%
Blue93.3%

CMYK percentages

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

Color previews

#af2bee text on a black background

contrast 4.40:1

Card sample

#af2bee text on a white background

contrast 4.77:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af2bee

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #af2bee in the Color Lab