Hex Color #804BAE - Custom Color

Color Codes

HEX
#804BAE
RGB
rgb(128, 75, 174)
HSL
hsl(272, 40%, 49%)
CMYK
cmyk(26%, 57%, 0%, 32%)
HSV
hsv(272, 57%, 68%)
Color Name
Custom Color

Color Variations

Color Harmonies

Accessibility

WCAG Contrast Ratios

Text on White Background

Sample Text

Contrast Ratio: 5.94:1
Pass - WCAG AA (Normal Text)
Fail - WCAG AAA (Normal Text)

Text on Black Background

Sample Text

Contrast Ratio: 3.54: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: #804BAE;
color: #804BAE;
border-color: #804BAE;
}

Tailwind CSS (with arbitrary values)

bg-[#804BAE]
text-[#804BAE]
border-[#804BAE]
// Example usage:
<div className="bg-[#804BAE]">