Hex Color #B271AE - Custom Color
Color Codes
HEX
#B271AE
RGB
rgb(178, 113, 174)
HSL
hsl(304, 30%, 57%)
CMYK
cmyk(0%, 37%, 2%, 30%)
HSV
hsv(304, 37%, 70%)
Color Name
Custom Color
Color Variations
Color Harmonies
Accessibility
WCAG Contrast Ratios
Text on White Background
Sample Text
Contrast Ratio: 3.58:1
Fail - WCAG AA (Normal Text)
Fail - WCAG AAA (Normal Text)
Text on Black Background
Sample Text
Contrast Ratio: 5.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: #B271AE;
color: #B271AE;
border-color: #B271AE;
}
Tailwind CSS (with arbitrary values)
bg-[#B271AE]
text-[#B271AE]
border-[#B271AE]
// Example usage:
<div className="bg-[#B271AE]">