Hex Color #AFD04A - Custom Color
Color Codes
HEX
#AFD04A
RGB
rgb(175, 208, 74)
HSL
hsl(75, 59%, 55%)
CMYK
cmyk(16%, 0%, 64%, 18%)
HSV
hsv(75, 64%, 82%)
Color Name
Custom Color
Color Variations
Color Harmonies
Accessibility
WCAG Contrast Ratios
Text on White Background
Sample Text
Contrast Ratio: 1.76:1
Fail - WCAG AA (Normal Text)
Fail - WCAG AAA (Normal Text)
Text on Black Background
Sample Text
Contrast Ratio: 11.94:1
Pass - WCAG AA (Normal Text)
Pass - WCAG AAA (Normal Text)
Recommended Text Color
For best readability on this background color, use black text.
Similar Colors
Color in Use
Card with colored border
Background with 20% opacity
CSS Code
.element {
background-color: #AFD04A;
color: #AFD04A;
border-color: #AFD04A;
}
Tailwind CSS (with arbitrary values)
bg-[#AFD04A]
text-[#AFD04A]
border-[#AFD04A]
// Example usage:
<div className="bg-[#AFD04A]">