Hex Color #D297FA - Custom Color
Color Codes
HEX
#D297FA
RGB
rgb(210, 151, 250)
HSL
hsl(276, 91%, 79%)
CMYK
cmyk(16%, 40%, 0%, 2%)
HSV
hsv(276, 40%, 98%)
Color Name
Custom Color
Color Variations
Color Harmonies
Accessibility
WCAG Contrast Ratios
Text on White Background
Sample Text
Contrast Ratio: 2.20:1
Fail - WCAG AA (Normal Text)
Fail - WCAG AAA (Normal Text)
Text on Black Background
Sample Text
Contrast Ratio: 9.55: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: #D297FA;
color: #D297FA;
border-color: #D297FA;
}
Tailwind CSS (with arbitrary values)
bg-[#D297FA]
text-[#D297FA]
border-[#D297FA]
// Example usage:
<div className="bg-[#D297FA]">