Hex Color #AB5142 - Custom Color
Color Codes
HEX
#AB5142
RGB
rgb(171, 81, 66)
HSL
hsl(9, 44%, 46%)
CMYK
cmyk(0%, 53%, 61%, 33%)
HSV
hsv(9, 61%, 67%)
Color Name
Custom Color
Color Variations
Color Harmonies
Accessibility
WCAG Contrast Ratios
Text on White Background
Sample Text
Contrast Ratio: 5.27:1
Pass - WCAG AA (Normal Text)
Fail - WCAG AAA (Normal Text)
Text on Black Background
Sample Text
Contrast Ratio: 3.99: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: #AB5142;
color: #AB5142;
border-color: #AB5142;
}
Tailwind CSS (with arbitrary values)
bg-[#AB5142]
text-[#AB5142]
border-[#AB5142]
// Example usage:
<div className="bg-[#AB5142]">