Hex Color #A22252 - Custom Color

Color Codes

HEX
#A22252
RGB
rgb(162, 34, 82)
HSL
hsl(338, 65%, 38%)
CMYK
cmyk(0%, 79%, 49%, 36%)
HSV
hsv(338, 79%, 64%)
Color Name
Custom Color

Color Variations

Color Harmonies

Accessibility

WCAG Contrast Ratios

Text on White Background

Sample Text

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

Text on Black Background

Sample Text

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

Tailwind CSS (with arbitrary values)

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