Hex Color #AFE154 - Custom Color
Color Codes
HEX
#AFE154
RGB
rgb(175, 225, 84)
HSL
hsl(81, 70%, 61%)
CMYK
cmyk(22%, 0%, 63%, 12%)
HSV
hsv(81, 63%, 88%)
Color Name
Custom Color
Color Variations
Color Harmonies
Accessibility
WCAG Contrast Ratios
Text on White Background
Sample Text
Contrast Ratio: 1.53:1
Fail - WCAG AA (Normal Text)
Fail - WCAG AAA (Normal Text)
Text on Black Background
Sample Text
Contrast Ratio: 13.72: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: #AFE154;
color: #AFE154;
border-color: #AFE154;
}
Tailwind CSS (with arbitrary values)
bg-[#AFE154]
text-[#AFE154]
border-[#AFE154]
// Example usage:
<div className="bg-[#AFE154]">