Hex Color #E540CA - Custom Color
Color Codes
HEX
#E540CA
RGB
rgb(229, 64, 202)
HSL
hsl(310, 76%, 57%)
CMYK
cmyk(0%, 72%, 12%, 10%)
HSV
hsv(310, 72%, 90%)
Color Name
Custom Color
Color Variations
Color Harmonies
Accessibility
WCAG Contrast Ratios
Text on White Background
Sample Text
Contrast Ratio: 3.55:1
Fail - WCAG AA (Normal Text)
Fail - WCAG AAA (Normal Text)
Text on Black Background
Sample Text
Contrast Ratio: 5.92: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: #E540CA;
color: #E540CA;
border-color: #E540CA;
}
Tailwind CSS (with arbitrary values)
bg-[#E540CA]
text-[#E540CA]
border-[#E540CA]
// Example usage:
<div className="bg-[#E540CA]">