Skip to content

#af26db

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

RGB
175, 38, 219
HSL
285°, 72%, 50%
CMYK
20, 83, 0, 14
Luminance
0.1561

Every format

HEX#af26db
RGBrgb(175, 38, 219)
HSLhsl(285, 72%, 50%)
CMYKcmyk(20%, 83%, 0%, 14%)
LABlab(46.5 75.5 -63.6)
LCHlch(46.5 98.7 319.9)
OKLCHoklch(0.573 0.257 315.7)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red68.6%
Green14.9%
Blue85.9%

CMYK percentages

Cyan20.1%
Magenta82.6%
Yellow0.0%
Key (black)14.1%

Color previews

#af26db text on a black background

contrast 4.12:1

Card sample

#af26db text on a white background

contrast 5.09:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af26db

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #af26db in the Color Lab