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