Hex Color #542468 - Custom Color

Color Codes

HEX
#542468
RGB
rgb(84, 36, 104)
HSL
hsl(282, 49%, 27%)
CMYK
cmyk(19%, 65%, 0%, 59%)
HSV
hsv(282, 65%, 41%)
Color Name
Custom Color

Color Variations

Color Harmonies

Accessibility

WCAG Contrast Ratios

Text on White Background

Sample Text

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

Text on Black Background

Sample Text

Contrast Ratio: 1.83: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: #542468;
color: #542468;
border-color: #542468;
}

Tailwind CSS (with arbitrary values)

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