Hex Color #AFB949 - Custom Color
Color Codes
HEX
#AFB949
RGB
rgb(175, 185, 73)
HSL
hsl(65, 44%, 51%)
CMYK
cmyk(5%, 0%, 61%, 27%)
HSV
hsv(65, 61%, 73%)
Color Name
Custom Color
Color Variations
Color Harmonies
Accessibility
WCAG Contrast Ratios
Text on White Background
Sample Text
Contrast Ratio: 2.13:1
Fail - WCAG AA (Normal Text)
Fail - WCAG AAA (Normal Text)
Text on Black Background
Sample Text
Contrast Ratio: 9.86: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: #AFB949;
color: #AFB949;
border-color: #AFB949;
}
Tailwind CSS (with arbitrary values)
bg-[#AFB949]
text-[#AFB949]
border-[#AFB949]
// Example usage:
<div className="bg-[#AFB949]">