Hex Color #D8002F - Custom Color
Color Codes
HEX
#D8002F
RGB
rgb(216, 0, 47)
HSL
hsl(347, 100%, 42%)
CMYK
cmyk(0%, 100%, 78%, 15%)
HSV
hsv(347, 100%, 85%)
Color Name
Custom Color
Color Variations
Color Harmonies
Accessibility
WCAG Contrast Ratios
Text on White Background
Sample Text
Contrast Ratio: 5.30:1
Pass - WCAG AA (Normal Text)
Fail - WCAG AAA (Normal Text)
Text on Black Background
Sample Text
Contrast Ratio: 3.96: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: #D8002F;
color: #D8002F;
border-color: #D8002F;
}
Tailwind CSS (with arbitrary values)
bg-[#D8002F]
text-[#D8002F]
border-[#D8002F]
// Example usage:
<div className="bg-[#D8002F]">