Hex Color #D318B4 - Custom Color
Color Codes
HEX
#D318B4
RGB
rgb(211, 24, 180)
HSL
hsl(310, 80%, 46%)
CMYK
cmyk(0%, 89%, 15%, 17%)
HSV
hsv(310, 89%, 83%)
Color Name
Custom Color
Color Variations
Color Harmonies
Accessibility
WCAG Contrast Ratios
Text on White Background
Sample Text
Contrast Ratio: 4.61:1
Pass - WCAG AA (Normal Text)
Fail - WCAG AAA (Normal Text)
Text on Black Background
Sample Text
Contrast Ratio: 4.56: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: #D318B4;
color: #D318B4;
border-color: #D318B4;
}
Tailwind CSS (with arbitrary values)
bg-[#D318B4]
text-[#D318B4]
border-[#D318B4]
// Example usage:
<div className="bg-[#D318B4]">