Hex Color #DC97FE - Custom Color
Color Codes
HEX
#DC97FE
RGB
rgb(220, 151, 254)
HSL
hsl(280, 98%, 79%)
CMYK
cmyk(13%, 41%, 0%, 0%)
HSV
hsv(280, 41%, 100%)
Color Name
Custom Color
Color Variations
Color Harmonies
Accessibility
WCAG Contrast Ratios
Text on White Background
Sample Text
Contrast Ratio: 2.12:1
Fail - WCAG AA (Normal Text)
Fail - WCAG AAA (Normal Text)
Text on Black Background
Sample Text
Contrast Ratio: 9.90:1
Pass - WCAG AA (Normal Text)
Pass - 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: #DC97FE;
color: #DC97FE;
border-color: #DC97FE;
}
Tailwind CSS (with arbitrary values)
bg-[#DC97FE]
text-[#DC97FE]
border-[#DC97FE]
// Example usage:
<div className="bg-[#DC97FE]">