Skip to content

#AFBB2A Color

#AFBB2A is rgb(175, 187, 42) in RGB, hsl(65, 63%, 45%) in HSL, and about cmyk(6%, 0%, 78%, 27%) in CMYK. It has no registered color name of its own — the closest is Acid Green (#B0BF1A), clearly related but distinguishable side by side at ΔE 5.32. Black text is the more readable choice on this background.

#AFBB2A
HEX#AFBB2A
RGBrgb(175, 187, 42)
HSLhsl(65, 63%, 45%)
HSVhsv(65, 78%, 73%)
CMYKcmyk(6%, 0%, 78%, 27%)
OKLCHoklch(75.8% 0.159 114.5)
LABlab(73.09% -16.91 65.41)
LCHlch(73.09% 67.56 104.49)

What #AFBB2A Is Called

Most hex codes have no name: there are 16.7 million of them and a few thousand registered names. These are the named colors nearest to #AFBB2A, ordered by CIE76 distance in CIELAB. Anything under about ΔE 2 is a difference most people cannot see.

Browse the full index of named colors A-Z or every green in the library.

#AFBB2A Channel Values

How #AFBB2A breaks down in each color model. Hue is measured in degrees around the color wheel; saturation, lightness, and the CMYK inks are percentages.

ModelChannelsNotes
RGBR 175 · G 187 · B 428-bit channels as sent to the display
HSLH 65° · S 63% · L 45%Easiest model for building lighter and darker variants
HSVH 65° · S 78% · V 73%Matches the picker in most design tools
CMYKC 6% · M 0% · Y 78% · K 27%Approximate ink mix; confirm with an ICC profile before printing
Luminance2.11:1 vs white · 9.96:1 vs blackWCAG 2.2 relative-luminance contrast ratios

Text Contrast & Accessibility

WCAG 2.2 contrast ratios for text on a #AFBB2A background. AA requires 4.5:1 for normal text and 3:1 for large text; AAA requires 7:1. Contrast is one check, not a full accessibility review.

Fails AAWhite text2.11:1AA normal AA large AAA normal
TextBlack text9.96:1AA normal AA large AAA normal

Need a specific ratio against another background? Open #AFBB2A in the contrast checker.

Colors That Go With #AFBB2A

Pairings derived from color-wheel relationships. The complementary color sits opposite #AFBB2A; analogous colors sit beside it; triadic and split-complementary sets spread evenly around the wheel. Select any swatch for its own breakdown.

Base
Complementary
Analogous
Analogous
Triadic
Triadic
Split comp.
Split comp.

Tints & Shades of #AFBB2A

Lighter tints and darker shades built by moving the lightness channel while holding hue and saturation, which is what you want for hover states, backgrounds, and text variants.

Tints

Shades

Want a full 50-950 ramp with semantic roles? Generate design tokens from #AFBB2A.

How #AFBB2A Looks with Color Vision Deficiency

Simulated with the Viénot, Brettel & Mollon LMS projection model. Anomalous types are rendered as partial versions of the matching dichromacy, which is an approximation rather than a per-person clinical model.

Typical#AFBB2A
Protanopia#B9B92A
Protanomaly#B5BA2A
Deuteranopia#B7B72C
Deuteranomaly#B4B92B
Tritanopia#BAB1B1
Tritanomaly#B5B58E
Achromatopsia#B3B3B3

Test a full palette in the color blindness simulator.

Using #AFBB2A in Code

Copy-ready declarations for the places this color usually ends up.

CSS custom property--color-afbb2a: #AFBB2A;
CSS backgroundbackground-color: #AFBB2A;
Tailwind configcolors: { 'color-afbb2a': '#AFBB2A' }
SwiftUIColor(red: 0.686, green: 0.733, blue: 0.165)
Android XML<color name="color_afbb2a">#AFBB2A</color>
SVG fillfill="#AFBB2A"

More Green Colors

#AFBB2A sits in the green family. These are its neighbours across that family's full range, each with its own breakdown.

#AFBB2A Frequently Asked Questions

What color is #AFBB2A?

#AFBB2A is a mid-tone green — rgb(175, 187, 42) in RGB and hsl(65, 63%, 45%) in HSL. It carries no registered color name of its own; the closest named color is Acid Green (#B0BF1A), which is clearly related but distinguishable side by side at a CIE76 distance of 5.32.

What is the RGB value of #AFBB2A?

#AFBB2A is rgb(175, 187, 42) — red 175, green 187, and blue 42 on the 0-255 scale.

What is the CMYK value of #AFBB2A?

#AFBB2A converts to approximately cmyk(6%, 0%, 78%, 27%). CMYK output is a mathematical approximation for planning; confirm production print colors with your printer and ICC profile.

Should text on #AFBB2A be black or white?

Black text is the more readable choice. #AFBB2A scores 2.11:1 against white and 9.96:1 against black, and WCAG 2.2 asks for at least 4.5:1 for normal body text.

Can I write #AFBB2A as a CSS color keyword?

No. #AFBB2A is not one of the CSS color keywords, so it has to be written as a hex, rgb() or hsl() value. The closest keyword is yellowgreen (#9ACD32) at a CIE76 distance of 16.6, which is visibly different.

Open #AFBB2A in a Tool

Keep exploring: every green in the color library, the guide to shades of green, or the full color library.