Hex Color #A2578B - Custom Color
Color Codes
HEX
#A2578B
RGB
rgb(162, 87, 139)
HSL
hsl(318, 30%, 49%)
CMYK
cmyk(0%, 46%, 14%, 36%)
HSV
hsv(318, 46%, 64%)
Color Name
Custom Color
Color Variations
Color Harmonies
Accessibility
WCAG Contrast Ratios
Text on White Background
Sample Text
Contrast Ratio: 4.92:1
Pass - WCAG AA (Normal Text)
Fail - WCAG AAA (Normal Text)
Text on Black Background
Sample Text
Contrast Ratio: 4.27: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: #A2578B;
color: #A2578B;
border-color: #A2578B;
}
Tailwind CSS (with arbitrary values)
bg-[#A2578B]
text-[#A2578B]
border-[#A2578B]
// Example usage:
<div className="bg-[#A2578B]">