Hex Color #D871AB - Custom Color
Color Codes
HEX
#D871AB
RGB
rgb(216, 113, 171)
HSL
hsl(326, 57%, 65%)
CMYK
cmyk(0%, 48%, 21%, 15%)
HSV
hsv(326, 48%, 85%)
Color Name
Custom Color
Color Variations
Color Harmonies
Accessibility
WCAG Contrast Ratios
Text on White Background
Sample Text
Contrast Ratio: 3.06:1
Fail - WCAG AA (Normal Text)
Fail - WCAG AAA (Normal Text)
Text on Black Background
Sample Text
Contrast Ratio: 6.87:1
Pass - 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: #D871AB;
color: #D871AB;
border-color: #D871AB;
}
Tailwind CSS (with arbitrary values)
bg-[#D871AB]
text-[#D871AB]
border-[#D871AB]
// Example usage:
<div className="bg-[#D871AB]">