Hex Color #AF78CB - Custom Color
Color Codes
HEX
#AF78CB
RGB
rgb(175, 120, 203)
HSL
hsl(280, 44%, 63%)
CMYK
cmyk(14%, 41%, 0%, 20%)
HSV
hsv(280, 41%, 80%)
Color Name
Custom Color
Color Variations
Color Harmonies
Accessibility
WCAG Contrast Ratios
Text on White Background
Sample Text
Contrast Ratio: 3.30:1
Fail - WCAG AA (Normal Text)
Fail - WCAG AAA (Normal Text)
Text on Black Background
Sample Text
Contrast Ratio: 6.37: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: #AF78CB;
color: #AF78CB;
border-color: #AF78CB;
}
Tailwind CSS (with arbitrary values)
bg-[#AF78CB]
text-[#AF78CB]
border-[#AF78CB]
// Example usage:
<div className="bg-[#AF78CB]">