Hex Color #B051A8 - Custom Color
Color Codes
HEX
#B051A8
RGB
rgb(176, 81, 168)
HSL
hsl(305, 38%, 50%)
CMYK
cmyk(0%, 54%, 5%, 31%)
HSV
hsv(305, 54%, 69%)
Color Name
Custom Color
Color Variations
Color Harmonies
Accessibility
WCAG Contrast Ratios
Text on White Background
Sample Text
Contrast Ratio: 4.58:1
Pass - WCAG AA (Normal Text)
Fail - WCAG AAA (Normal Text)
Text on Black Background
Sample Text
Contrast Ratio: 4.59: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: #B051A8;
color: #B051A8;
border-color: #B051A8;
}
Tailwind CSS (with arbitrary values)
bg-[#B051A8]
text-[#B051A8]
border-[#B051A8]
// Example usage:
<div className="bg-[#B051A8]">