Hex Color #CD2AAA - Custom Color
Color Codes
HEX
#CD2AAA
RGB
rgb(205, 42, 170)
HSL
hsl(313, 66%, 48%)
CMYK
cmyk(0%, 80%, 17%, 20%)
HSV
hsv(313, 80%, 80%)
Color Name
Custom Color
Color Variations
Color Harmonies
Accessibility
WCAG Contrast Ratios
Text on White Background
Sample Text
Contrast Ratio: 4.66:1
Pass - WCAG AA (Normal Text)
Fail - WCAG AAA (Normal Text)
Text on Black Background
Sample Text
Contrast Ratio: 4.51: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: #CD2AAA;
color: #CD2AAA;
border-color: #CD2AAA;
}
Tailwind CSS (with arbitrary values)
bg-[#CD2AAA]
text-[#CD2AAA]
border-[#CD2AAA]
// Example usage:
<div className="bg-[#CD2AAA]">