Hex Color #521DAB - Custom Color
Color Codes
HEX
#521DAB
RGB
rgb(82, 29, 171)
HSL
hsl(262, 71%, 39%)
CMYK
cmyk(52%, 83%, 0%, 33%)
HSV
hsv(262, 83%, 67%)
Color Name
Custom Color
Color Variations
Color Harmonies
Accessibility
WCAG Contrast Ratios
Text on White Background
Sample Text
Contrast Ratio: 9.89:1
Pass - WCAG AA (Normal Text)
Pass - WCAG AAA (Normal Text)
Text on Black Background
Sample Text
Contrast Ratio: 2.12: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: #521DAB;
color: #521DAB;
border-color: #521DAB;
}
Tailwind CSS (with arbitrary values)
bg-[#521DAB]
text-[#521DAB]
border-[#521DAB]
// Example usage:
<div className="bg-[#521DAB]">