Hex Color #40782F - Custom Color
Color Codes
HEX
#40782F
RGB
rgb(64, 120, 47)
HSL
hsl(106, 44%, 33%)
CMYK
cmyk(47%, 0%, 61%, 53%)
HSV
hsv(106, 61%, 47%)
Color Name
Custom Color
Color Variations
Color Harmonies
Accessibility
WCAG Contrast Ratios
Text on White Background
Sample Text
Contrast Ratio: 5.32:1
Pass - WCAG AA (Normal Text)
Fail - WCAG AAA (Normal Text)
Text on Black Background
Sample Text
Contrast Ratio: 3.95:1
Fail - WCAG AA (Normal Text)
Fail - 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: #40782F;
color: #40782F;
border-color: #40782F;
}
Tailwind CSS (with arbitrary values)
bg-[#40782F]
text-[#40782F]
border-[#40782F]
// Example usage:
<div className="bg-[#40782F]">