Hex Color #AF516A - Custom Color

Color Codes

HEX
#AF516A
RGB
rgb(175, 81, 106)
HSL
hsl(344, 37%, 50%)
CMYK
cmyk(0%, 54%, 39%, 31%)
HSV
hsv(344, 54%, 69%)
Color Name
Custom Color

Color Variations

Color Harmonies

Accessibility

WCAG Contrast Ratios

Text on White Background

Sample Text

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

Text on Black Background

Sample Text

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

Tailwind CSS (with arbitrary values)

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