Hex Color #CC227F - Custom Color
Color Codes
HEX
#CC227F
RGB
rgb(204, 34, 127)
HSL
hsl(327, 71%, 47%)
CMYK
cmyk(0%, 83%, 38%, 20%)
HSV
hsv(327, 83%, 80%)
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.10: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: #CC227F;
color: #CC227F;
border-color: #CC227F;
}
Tailwind CSS (with arbitrary values)
bg-[#CC227F]
text-[#CC227F]
border-[#CC227F]
// Example usage:
<div className="bg-[#CC227F]">