Hex Color #B31C8E - Custom Color
Color Codes
HEX
#B31C8E
RGB
rgb(179, 28, 142)
HSL
hsl(315, 73%, 41%)
CMYK
cmyk(0%, 84%, 21%, 30%)
HSV
hsv(315, 84%, 70%)
Color Name
Custom Color
Color Variations
Color Harmonies
Accessibility
WCAG Contrast Ratios
Text on White Background
Sample Text
Contrast Ratio: 6.05:1
Pass - WCAG AA (Normal Text)
Fail - WCAG AAA (Normal Text)
Text on Black Background
Sample Text
Contrast Ratio: 3.47: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: #B31C8E;
color: #B31C8E;
border-color: #B31C8E;
}
Tailwind CSS (with arbitrary values)
bg-[#B31C8E]
text-[#B31C8E]
border-[#B31C8E]
// Example usage:
<div className="bg-[#B31C8E]">