Hex Color #AF337D - Custom Color

Color Codes

HEX
#AF337D
RGB
rgb(175, 51, 125)
HSL
hsl(324, 55%, 44%)
CMYK
cmyk(0%, 71%, 29%, 31%)
HSV
hsv(324, 71%, 69%)
Color Name
Custom Color

Color Variations

Color Harmonies

Accessibility

WCAG Contrast Ratios

Text on White Background

Sample Text

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

Text on Black Background

Sample Text

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

Tailwind CSS (with arbitrary values)

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