Hex Color #AA1FAF - Custom Color

Color Codes

HEX
#AA1FAF
RGB
rgb(170, 31, 175)
HSL
hsl(298, 70%, 40%)
CMYK
cmyk(3%, 82%, 0%, 31%)
HSV
hsv(298, 82%, 69%)
Color Name
Custom Color

Color Variations

Color Harmonies

Accessibility

WCAG Contrast Ratios

Text on White Background

Sample Text

Contrast Ratio: 5.96:1
Pass - WCAG AA (Normal Text)
Fail - WCAG AAA (Normal Text)

Text on Black Background

Sample Text

Contrast Ratio: 3.52:1
Fail - WCAG AA (Normal Text)
Fail - WCAG AAA (Normal Text)

Recommended Text Color

For best readability on this background color, use white text.

Similar Colors

Color in Use

Card with colored border

Background with 20% opacity

CSS Code

.element {
background-color: #AA1FAF;
color: #AA1FAF;
border-color: #AA1FAF;
}

Tailwind CSS (with arbitrary values)

bg-[#AA1FAF]
text-[#AA1FAF]
border-[#AA1FAF]
// Example usage:
<div className="bg-[#AA1FAF]">