Hex Color #D8306A - Custom Color
Color Codes
HEX
#D8306A
RGB
rgb(216, 48, 106)
HSL
hsl(339, 68%, 52%)
CMYK
cmyk(0%, 78%, 51%, 15%)
HSV
hsv(339, 78%, 85%)
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.55: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: #D8306A;
color: #D8306A;
border-color: #D8306A;
}
Tailwind CSS (with arbitrary values)
bg-[#D8306A]
text-[#D8306A]
border-[#D8306A]
// Example usage:
<div className="bg-[#D8306A]">