Skip to content
Kolorvia
#af28b1

Color #af28b1

A moderately saturated medium magenta.

Conversions

HEX
#af28b1
RGB
rgb(175, 40, 177)
HSL
hsl(299.1, 63.1%, 42.5%)
HSV / HSB
hsv(299.1, 77.4%, 69.4%)
CMYK
cmyk(1.1%, 77.4%, 0%, 30.6%)
LAB
lab(43.96, 67.69, -43.21)
LCH
lch(43.96, 80.31, 327.45)
OKLCH
oklch(54.7%, 0.223, 327.45)
HWB
hwb(299.1, 15.7%, 30.6%)

Harmony colors

Complementary

#2ab128

Analogous

#6a28b1
#af28b1
#b1286e

Triadic

#af28b1
#b1af28
#28b1af

Split-complementary

#af28b1
#6eb128
#28b16a

Tetradic

#af28b1
#b1282a
#2ab128
#28b1af

Square

#af28b1
#b16a28
#2ab128
#286eb1

Shades

Color #af28b1 mixed toward black.

#922193
#741b76
#571458
#3a0d3b
#1d071d

Tints

Color #af28b1 mixed toward white.

#d038d2
#d960db
#e387e4
#ecafed
#f6d7f6

Tones

Color #af28b1 mixed toward gray.

#a433a5
#993f9a
#8e4a8f
#825683
#776178

Accessibility

Aa White text on this color
5.58:1
Aa Black text on this color
3.76:1

White text reads better on this background (5.58:1). That passes WCAG AA (≥4.5:1) for normal-size text, but not AAA.

Under color vision deficiencies

Protanopia

#8a899d · ΔE 27.7

Deuteranopia

#8f9698 · ΔE 22.9

Tritanopia

#ab8b87 · ΔE 32.3

Achromatopsia

#686868 · ΔE 28.7

Left half is the original, right half is the simulated appearance. See all 8 vision types →

Code

CSS
background-color: #af28b1;
Tailwind (arbitrary value)
bg-[#af28b1]

Related colors

Dark Magenta #8b008b
Fuchsia #ff00ff
Plum #dda0dd
Purple #800080
Thistle #d8bfd8
Violet #ee82ee

Frequently asked questions

#af28b1 (#af28b1) is rgb(175, 40, 177) in RGB.

No, #af28b1 is not one of the 216 web-safe colors — for that, every RGB channel would have to be a multiple of 51.

Related tools

Build something with this color

Generate a full palette from #af28b1, or check how it holds up for accessibility.

We use cookies for site preferences and, where enabled, Google Analytics and Google AdSense — which may use cookies to personalize ads based on your visits here and elsewhere. See our Privacy Policy for details. Your color tool inputs are never sent to us regardless of your choice.