Hex Color #AFD51E - Custom Color
Color Codes
HEX
#AFD51E
RGB
rgb(175, 213, 30)
HSL
hsl(72, 75%, 48%)
CMYK
cmyk(18%, 0%, 86%, 16%)
HSV
hsv(72, 86%, 84%)
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: #AFD51E;
color: #AFD51E;
border-color: #AFD51E;
}
Tailwind CSS (with arbitrary values)
bg-[#AFD51E]
text-[#AFD51E]
border-[#AFD51E]
// Example usage:
<div className="bg-[#AFD51E]">