Hex Color #C271DD - Custom Color
Color Codes
HEX
#C271DD
RGB
rgb(194, 113, 221)
HSL
hsl(285, 61%, 65%)
CMYK
cmyk(12%, 49%, 0%, 13%)
HSV
hsv(285, 49%, 87%)
Color Name
Custom Color
Color Variations
Color Harmonies
Accessibility
WCAG Contrast Ratios
Text on White Background
Sample Text
Contrast Ratio: 3.13:1
Fail - WCAG AA (Normal Text)
Fail - WCAG AAA (Normal Text)
Text on Black Background
Sample Text
Contrast Ratio: 6.70: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: #C271DD;
color: #C271DD;
border-color: #C271DD;
}
Tailwind CSS (with arbitrary values)
bg-[#C271DD]
text-[#C271DD]
border-[#C271DD]
// Example usage:
<div className="bg-[#C271DD]">