Hex Color #7F40AB - Custom Color
Color Codes
HEX
#7F40AB
RGB
rgb(127, 64, 171)
HSL
hsl(275, 46%, 46%)
CMYK
cmyk(26%, 63%, 0%, 33%)
HSV
hsv(275, 63%, 67%)
Color Name
Custom Color
Color Variations
Color Harmonies
Accessibility
WCAG Contrast Ratios
Text on White Background
Sample Text
Contrast Ratio: 6.51:1
Pass - WCAG AA (Normal Text)
Fail - WCAG AAA (Normal Text)
Text on Black Background
Sample Text
Contrast Ratio: 3.22:1
Fail - 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: #7F40AB;
color: #7F40AB;
border-color: #7F40AB;
}
Tailwind CSS (with arbitrary values)
bg-[#7F40AB]
text-[#7F40AB]
border-[#7F40AB]
// Example usage:
<div className="bg-[#7F40AB]">