#AF28A6 color

#AF28A6 rgb(175, 40, 166)
Shades of purple

The hex color #AF28A6 is a moderate magenta.

In the RGB color model it is made of 68.6% red, 15.7% green and 65.1% blue (175, 40, 166).

Its hue angle is 304°, with 63% saturation and 42% lightness. For print, the CMYK equivalent is 0% cyan, 77% magenta, 5% yellow and 31% black.

The closest named color is Punk Rock Purple (#BB11AA), a difference of 2 ΔE, a small difference.

White text is the more readable choice on this background (contrast 5.71:1).

#AF28A6 color codes

HEX#AF28A6
RGBrgb(175, 40, 166)
RGB percentrgb(68.6%, 15.7%, 65.1%)
HSLhsl(304, 63%, 42%)
HSV / HSBhsv(304, 77%, 69%)
CMYKcmyk(0%, 77%, 5%, 31%)
CIE LABlab(43.34, 65.95, -37.65)
CIE LCHlch(43.34, 75.94, 330.27)
CIE XYZxyz(25.321, 13.387, 37.319)
Decimal11479206
Short hexNone (no 3-digit form)

Color harmonies

Colors that go with #AF28A6, based on their position on the color wheel.

Complementary

The color opposite on the color wheel (180°). Strongest contrast.

Analogous

Neighbors 30° either side. Calm, natural combinations.

Split complementary

The two colors next to the complement (150° and 210°).

Triadic

Three colors evenly spaced, 120° apart.

Tetradic (square)

Four colors 90° apart.

Shades, tints and tones

Shades (darker, mixed with black)

Tints (lighter, mixed with white)

Tones (mixed with gray)

Contrast and accessibility

Text on #AF28A6RatioAAAAAAA large
Sample text3.68:1FailFailPass
Sample text5.71:1PassFailPass
#AF28A6 as text onRatioAAAAAAA large
Sample text5.71:1PassFailPass
Sample text3.68:1FailFailPass

WCAG 2 asks for 4.5:1 for normal text (AA), 7:1 for AAA, and 3:1 for large text. Check other pairs.

Color blindness simulation

How #AF28A6 looks to people with the most common types of color vision deficiency.

CSS examples

.background { background-color: #af28a6; }
.text { color: #af28a6; }
.border { border: 2px solid #af28a6; }
.transparent { background-color: rgb(175 40 166 / 50%); }
.gradient { background: linear-gradient(to right, #af28a6, #af2863); }
Background
Text color
Border

Similar colors

Closest common color name: Dark Orchid.

Questions

What color is #AF28A6?
#AF28A6 is a moderate magenta, closest to the named color Punk Rock Purple. It belongs to the purple family of colors.
What is the RGB value of #AF28A6?
The RGB value is 175, 40, 166: 175 red, 40 green and 166 blue on a 0 to 255 scale.
What is the complementary color of #AF28A6?
The complementary color is #28AF31, found by rotating the hue 180° on the color wheel.
Is black or white text better on #AF28A6?
White text. Black text has a contrast ratio of 3.68:1 and white text 5.71:1. WCAG asks for at least 4.5:1 for normal text.