#AFAB2C Color Information

Hex color code: #AFAB2C

#AFAB2C is a muted yellow color. In RGB it is (175, 171, 44), and in HSL it is (58°, 60%, 43%). It is typically applied in digital products.

Try:
Color NameYellow Green
HEX
#AFAB2C
RGB
175, 171, 44
HSL
58°, 60%, 43%
CMYK
0%, 2%, 75%, 31%

Shades

CSS Usage
color: #AFAB2C;
background-color: #AFAB2C;
border-color: #AFAB2C;
box-shadow: 0 0 10px #AFAB2C;
border: 2px solid #AFAB2C;
Tailwind Usage
bg-[#AFAB2C]
text-[#AFAB2C]
border-[#AFAB2C]
shadow-[0_0_10px_AFAB2C]

Generate Gradient

Gradient CSS
background: linear-gradient(90deg, #AFAB2C, #FF5733);

Preview in UI

Button

.btn-primary { background-color: #AFAB2C; color: #000000; }

Badge

New Feature
.badge { background-color: #AFAB2C; color: #000000; }

Text Highlight

The quick brown fox jumps over the lazy dog. highlighted text example shows how the color looks as a text highlight.

Card

Card Title

This card uses your color as a border accent.

.card-accent { border: 2px solid #AFAB2C; background-color: #AFAB2C15; }

Alert / Toast

This is an alert using your color as accent.
.alert { background-color: #AFAB2C20; border-left: 4px solid #AFAB2C; }

Link / Accent

This is a paragraph with a link using your color. The color can be applied to interactive elements.

a { color: #AFAB2C; }

Related Colors

Complementary

Analogous

Triadic

Split Complementary

Tetradic

Monochromatic

Popular Colors

Common HEX Colors

Color Theory

Relationships based on the position of #AFAB2C in the color wheel.

Current Complementary Triadic Analogous

RGB, HSL and CMYK Values

RGB

175, 171, 44

Red: 175 / Green: 171 / Blue: 44

HSL

58°, 60%, 43%

Hue: 58° / Saturation: 60% / Lightness: 43%

CMYK

0%, 2%, 75%, 31%

Cyan: 0% / Magenta: 2% / Yellow: 75% / Key: 31%

What color is #AFAB2C?

#AFAB2C is a orange-yellow hue associated with optimism and creativity.

Color Shades

Complementary Colors

Color Palette

HEX to RGB

Convert #AFAB2C to RGB:

rgb(175, 171, 44)HEX to RGB Converter →

HEX to HSL

Convert #AFAB2C to HSL:

hsl(58, 60%, 43%)RGB to HSL Converter →

HEX to CMYK

Convert #AFAB2C to CMYK:

cmyk(0%, 2%, 75%, 31%)Color Converter →

Color Meaning and Usage

A muted yellow tone, #AFAB2C has RGB (175, 171, 44) and HSL (58°, 60%, 43%). Known for evoking optimism and creativity, this orange-yellow hue is often used for branding and logos. Lighter variations like #FFFFFF create softer gradients.

The complementary color of #AFAB2C is #2C30AF, creating high-contrast pairings. For softer combinations, try analogous colors like #AF692C.

Use #AFAB2C in CSS: color: #AFAB2C or background-color: #AFAB2C. Create palettes with Color Palette Generator or check contrast with Contrast Checker.

Contrast with #AFAB2C

Sample text on this color - The quick brown fox jumps over the lazy dog.

Contrast Ratio: 8.68:1
WCAG AA: Pass
WCAG AAA: Pass

Need more control? Contrast Checker →

Frequently Asked Questions

What color is #AFAB2C?

#AFAB2C is a muted yellow color - a orange-yellow hue that evokes optimism and creativity.

What is the RGB value of #AFAB2C?

#AFAB2C in RGB is (175, 171, 44) - 175 red, 171 green, and 44 blue.

How to use #AFAB2C in CSS?

Use #AFAB2C directly in your CSS properties like color or background-color.

What colors go well with #AFAB2C?

#2C30AF (complementary), #AF692C (analogous), and #726F1D (lighter shade) work well with #AFAB2C.