Hex Color #AF54A1 - Custom Color
Color Codes
HEX
#AF54A1
RGB
rgb(175, 84, 161)
HSL
hsl(309, 36%, 51%)
CMYK
cmyk(0%, 52%, 8%, 31%)
HSV
hsv(309, 52%, 69%)
Color Name
Custom Color
Color Variations
Color Harmonies
Accessibility
WCAG Contrast Ratios
Text on White Background
Sample Text
Contrast Ratio: 4.56:1
Pass - WCAG AA (Normal Text)
Fail - WCAG AAA (Normal Text)
Text on Black Background
Sample Text
Contrast Ratio: 4.61:1
Pass - 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: #AF54A1;
color: #AF54A1;
border-color: #AF54A1;
}
Tailwind CSS (with arbitrary values)
bg-[#AF54A1]
text-[#AF54A1]
border-[#AF54A1]
// Example usage:
<div className="bg-[#AF54A1]">