Hex Color #C42CAB - Custom Color
Color Codes
HEX
#C42CAB
RGB
rgb(196, 44, 171)
HSL
hsl(310, 63%, 47%)
CMYK
cmyk(0%, 78%, 13%, 23%)
HSV
hsv(310, 78%, 77%)
Color Name
Custom Color
Color Variations
Color Harmonies
Accessibility
WCAG Contrast Ratios
Text on White Background
Sample Text
Contrast Ratio: 4.89:1
Pass - WCAG AA (Normal Text)
Fail - WCAG AAA (Normal Text)
Text on Black Background
Sample Text
Contrast Ratio: 4.30: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: #C42CAB;
color: #C42CAB;
border-color: #C42CAB;
}
Tailwind CSS (with arbitrary values)
bg-[#C42CAB]
text-[#C42CAB]
border-[#C42CAB]
// Example usage:
<div className="bg-[#C42CAB]">