Hex Color #AF2986 - Custom Color

Color Codes

HEX
#AF2986
RGB
rgb(175, 41, 134)
HSL
hsl(318, 62%, 42%)
CMYK
cmyk(0%, 77%, 23%, 31%)
HSV
hsv(318, 77%, 69%)
Color Name
Custom Color

Color Variations

Color Harmonies

Accessibility

WCAG Contrast Ratios

Text on White Background

Sample Text

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

Text on Black Background

Sample Text

Contrast Ratio: 3.48: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: #AF2986;
color: #AF2986;
border-color: #AF2986;
}

Tailwind CSS (with arbitrary values)

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