Hex Color #AFB92D - Custom Color

Color Codes

HEX
#AFB92D
RGB
rgb(175, 185, 45)
HSL
hsl(64, 61%, 45%)
CMYK
cmyk(5%, 0%, 76%, 27%)
HSV
hsv(64, 76%, 73%)
Color Name
Custom Color

Color Variations

Color Harmonies

Accessibility

WCAG Contrast Ratios

Text on White Background

Sample Text

Contrast Ratio: 2.14:1
Fail - WCAG AA (Normal Text)
Fail - WCAG AAA (Normal Text)

Text on Black Background

Sample Text

Contrast Ratio: 9.80:1
Pass - WCAG AA (Normal Text)
Pass - 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: #AFB92D;
color: #AFB92D;
border-color: #AFB92D;
}

Tailwind CSS (with arbitrary values)

bg-[#AFB92D]
text-[#AFB92D]
border-[#AFB92D]
// Example usage:
<div className="bg-[#AFB92D]">