Hex Color #A21CBC - Custom Color
Color Codes
HEX
#A21CBC
RGB
rgb(162, 28, 188)
HSL
hsl(290, 74%, 42%)
CMYK
cmyk(14%, 85%, 0%, 26%)
HSV
hsv(290, 85%, 74%)
Color Name
Custom Color
Color Variations
Color Harmonies
Accessibility
WCAG Contrast Ratios
Text on White Background
Sample Text
Contrast Ratio: 6.13:1
Pass - WCAG AA (Normal Text)
Fail - WCAG AAA (Normal Text)
Text on Black Background
Sample Text
Contrast Ratio: 3.43: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: #A21CBC;
color: #A21CBC;
border-color: #A21CBC;
}
Tailwind CSS (with arbitrary values)
bg-[#A21CBC]
text-[#A21CBC]
border-[#A21CBC]
// Example usage:
<div className="bg-[#A21CBC]">