Hex Color #D02DCC - Custom Color
Color Codes
HEX
#D02DCC
RGB
rgb(208, 45, 204)
HSL
hsl(301, 64%, 50%)
CMYK
cmyk(0%, 78%, 2%, 18%)
HSV
hsv(301, 78%, 82%)
Color Name
Custom Color
Color Variations
Color Harmonies
Accessibility
WCAG Contrast Ratios
Text on White Background
Sample Text
Contrast Ratio: 4.26:1
Fail - WCAG AA (Normal Text)
Fail - WCAG AAA (Normal Text)
Text on Black Background
Sample Text
Contrast Ratio: 4.93: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: #D02DCC;
color: #D02DCC;
border-color: #D02DCC;
}
Tailwind CSS (with arbitrary values)
bg-[#D02DCC]
text-[#D02DCC]
border-[#D02DCC]
// Example usage:
<div className="bg-[#D02DCC]">