Hex Color #AFD281 - Custom Color
Color Codes
HEX
#AFD281
RGB
rgb(175, 210, 129)
HSL
hsl(86, 47%, 66%)
CMYK
cmyk(17%, 0%, 39%, 18%)
HSV
hsv(86, 39%, 82%)
Color Name
Custom Color
Color Variations
Color Harmonies
Accessibility
WCAG Contrast Ratios
Text on White Background
Sample Text
Contrast Ratio: 1.70:1
Fail - WCAG AA (Normal Text)
Fail - WCAG AAA (Normal Text)
Text on Black Background
Sample Text
Contrast Ratio: 12.36: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: #AFD281;
color: #AFD281;
border-color: #AFD281;
}
Tailwind CSS (with arbitrary values)
bg-[#AFD281]
text-[#AFD281]
border-[#AFD281]
// Example usage:
<div className="bg-[#AFD281]">