Hex Color #AB5FAA - Custom Color
Color Codes
HEX
#AB5FAA
RGB
rgb(171, 95, 170)
HSL
hsl(301, 31%, 52%)
CMYK
cmyk(0%, 44%, 1%, 33%)
HSV
hsv(301, 44%, 67%)
Color Name
Custom Color
Color Variations
Color Harmonies
Accessibility
WCAG Contrast Ratios
Text on White Background
Sample Text
Contrast Ratio: 4.24:1
Fail - WCAG AA (Normal Text)
Fail - WCAG AAA (Normal Text)
Text on Black Background
Sample Text
Contrast Ratio: 4.95: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: #AB5FAA;
color: #AB5FAA;
border-color: #AB5FAA;
}
Tailwind CSS (with arbitrary values)
bg-[#AB5FAA]
text-[#AB5FAA]
border-[#AB5FAA]
// Example usage:
<div className="bg-[#AB5FAA]">