Hex Color #AFA8A9 - Custom Color

Color Codes

HEX
#AFA8A9
RGB
rgb(175, 168, 169)
HSL
hsl(351, 4%, 67%)
CMYK
cmyk(0%, 4%, 3%, 31%)
HSV
hsv(351, 4%, 69%)
Color Name
Custom Color

Color Variations

Color Harmonies

Accessibility

WCAG Contrast Ratios

Text on White Background

Sample Text

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

Text on Black Background

Sample Text

Contrast Ratio: 9.00:1
Pass - WCAG AA (Normal Text)
Pass - 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: #AFA8A9;
color: #AFA8A9;
border-color: #AFA8A9;
}

Tailwind CSS (with arbitrary values)

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