Hex Color #AB30D4 - Custom Color
Color Codes
HEX
#AB30D4
RGB
rgb(171, 48, 212)
HSL
hsl(285, 66%, 51%)
CMYK
cmyk(19%, 77%, 0%, 17%)
HSV
hsv(285, 77%, 83%)
Color Name
Custom Color
Color Variations
Color Harmonies
Accessibility
WCAG Contrast Ratios
Text on White Background
Sample Text
Contrast Ratio: 5.12:1
Pass - WCAG AA (Normal Text)
Fail - WCAG AAA (Normal Text)
Text on Black Background
Sample Text
Contrast Ratio: 4.11: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: #AB30D4;
color: #AB30D4;
border-color: #AB30D4;
}
Tailwind CSS (with arbitrary values)
bg-[#AB30D4]
text-[#AB30D4]
border-[#AB30D4]
// Example usage:
<div className="bg-[#AB30D4]">