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