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