Hex Color #C840BB - Custom Color
Color Codes
HEX
#C840BB
RGB
rgb(200, 64, 187)
HSL
hsl(306, 55%, 52%)
CMYK
cmyk(0%, 68%, 7%, 22%)
HSV
hsv(306, 68%, 78%)
Color Name
Custom Color
Color Variations
Color Harmonies
Accessibility
WCAG Contrast Ratios
Text on White Background
Sample Text
Contrast Ratio: 4.28:1
Fail - WCAG AA (Normal Text)
Fail - WCAG AAA (Normal Text)
Text on Black Background
Sample Text
Contrast Ratio: 4.91: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: #C840BB;
color: #C840BB;
border-color: #C840BB;
}
Tailwind CSS (with arbitrary values)
bg-[#C840BB]
text-[#C840BB]
border-[#C840BB]
// Example usage:
<div className="bg-[#C840BB]">