Hex Color #D52FAC - Custom Color
Color Codes
HEX
#D52FAC
RGB
rgb(213, 47, 172)
HSL
hsl(315, 66%, 51%)
CMYK
cmyk(0%, 78%, 19%, 16%)
HSV
hsv(315, 78%, 84%)
Color Name
Custom Color
Color Variations
Color Harmonies
Accessibility
WCAG Contrast Ratios
Text on White Background
Sample Text
Contrast Ratio: 4.35:1
Fail - WCAG AA (Normal Text)
Fail - WCAG AAA (Normal Text)
Text on Black Background
Sample Text
Contrast Ratio: 4.83: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: #D52FAC;
color: #D52FAC;
border-color: #D52FAC;
}
Tailwind CSS (with arbitrary values)
bg-[#D52FAC]
text-[#D52FAC]
border-[#D52FAC]
// Example usage:
<div className="bg-[#D52FAC]">