Hex Color #AF548B - Custom Color

Color Codes

HEX
#AF548B
RGB
rgb(175, 84, 139)
HSL
hsl(324, 36%, 51%)
CMYK
cmyk(0%, 52%, 21%, 31%)
HSV
hsv(324, 52%, 69%)
Color Name
Custom Color

Color Variations

Color Harmonies

Accessibility

WCAG Contrast Ratios

Text on White Background

Sample Text

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

Text on Black Background

Sample Text

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

Tailwind CSS (with arbitrary values)

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