Hex Color #C040CE - Custom Color
Color Codes
HEX
#C040CE
RGB
rgb(192, 64, 206)
HSL
hsl(294, 59%, 53%)
CMYK
cmyk(7%, 69%, 0%, 19%)
HSV
hsv(294, 69%, 81%)
Color Name
Custom Color
Color Variations
Color Harmonies
Accessibility
WCAG Contrast Ratios
Text on White Background
Sample Text
Contrast Ratio: 4.32:1
Fail - WCAG AA (Normal Text)
Fail - WCAG AAA (Normal Text)
Text on Black Background
Sample Text
Contrast Ratio: 4.87: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: #C040CE;
color: #C040CE;
border-color: #C040CE;
}
Tailwind CSS (with arbitrary values)
bg-[#C040CE]
text-[#C040CE]
border-[#C040CE]
// Example usage:
<div className="bg-[#C040CE]">