Hex Color #54216C - Custom Color

Color Codes

HEX
#54216C
RGB
rgb(84, 33, 108)
HSL
hsl(281, 53%, 28%)
CMYK
cmyk(22%, 69%, 0%, 58%)
HSV
hsv(281, 69%, 42%)
Color Name
Custom Color

Color Variations

Color Harmonies

Accessibility

WCAG Contrast Ratios

Text on White Background

Sample Text

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

Text on Black Background

Sample Text

Contrast Ratio: 1.81: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: #54216C;
color: #54216C;
border-color: #54216C;
}

Tailwind CSS (with arbitrary values)

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