Hex Color #AF78CE - Custom Color
Color Codes
HEX
#AF78CE
RGB
rgb(175, 120, 206)
HSL
hsl(278, 47%, 64%)
CMYK
cmyk(15%, 42%, 0%, 19%)
HSV
hsv(278, 42%, 81%)
Color Name
Custom Color
Color Variations
Color Harmonies
Accessibility
WCAG Contrast Ratios
Text on White Background
Sample Text
Contrast Ratio: 3.28:1
Fail - WCAG AA (Normal Text)
Fail - WCAG AAA (Normal Text)
Text on Black Background
Sample Text
Contrast Ratio: 6.40: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: #AF78CE;
color: #AF78CE;
border-color: #AF78CE;
}
Tailwind CSS (with arbitrary values)
bg-[#AF78CE]
text-[#AF78CE]
border-[#AF78CE]
// Example usage:
<div className="bg-[#AF78CE]">