Hex Color #C7151B - Custom Color
Color Codes
HEX
#C7151B
RGB
rgb(199, 21, 27)
HSL
hsl(358, 81%, 43%)
CMYK
cmyk(0%, 89%, 86%, 22%)
HSV
hsv(358, 89%, 78%)
Color Name
Custom Color
Color Variations
Color Harmonies
Accessibility
WCAG Contrast Ratios
Text on White Background
Sample Text
Contrast Ratio: 5.91:1
Pass - WCAG AA (Normal Text)
Fail - WCAG AAA (Normal Text)
Text on Black Background
Sample Text
Contrast Ratio: 3.55: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: #C7151B;
color: #C7151B;
border-color: #C7151B;
}
Tailwind CSS (with arbitrary values)
bg-[#C7151B]
text-[#C7151B]
border-[#C7151B]
// Example usage:
<div className="bg-[#C7151B]">