#AFA74B Color Information

Hex color code: #AFA74B

The hex color #AFA74B is a subtle yellow with RGB values of (175, 167, 75) and HSL of (55°, 40%, 49%). It is popular in mobile app design.

Try:
Color NamePeru
HEX
#AFA74B
RGB
175, 167, 75
HSL
55°, 40%, 49%
CMYK
0%, 5%, 57%, 31%

Shades

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

Generate Gradient

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

Preview in UI

Button

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

Badge

New Feature
.badge { background-color: #AFA74B; 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 #AFA74B; background-color: #AFA74B15; }

Alert / Toast

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

Link / Accent

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

a { color: #AFA74B; }

Related Colors

Complementary

Analogous

Triadic

Split Complementary

Tetradic

Monochromatic

Popular Colors

Common HEX Colors

Color Theory

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

Current Complementary Triadic Analogous

RGB, HSL and CMYK Values

RGB

175, 167, 75

Red: 175 / Green: 167 / Blue: 75

HSL

55°, 40%, 49%

Hue: 55° / Saturation: 40% / Lightness: 49%

CMYK

0%, 5%, 57%, 31%

Cyan: 0% / Magenta: 5% / Yellow: 57% / Key: 31%

What color is #AFA74B?

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

Color Shades

Complementary Colors

Color Palette

HEX to RGB

Convert #AFA74B to RGB:

rgb(175, 167, 75)HEX to RGB Converter →

HEX to HSL

Convert #AFA74B to HSL:

hsl(55, 40%, 49%)RGB to HSL Converter →

HEX to CMYK

Convert #AFA74B to CMYK:

cmyk(0%, 5%, 57%, 31%)Color Converter →

Color Meaning and Usage

A soft yellow tone, #AFA74B has RGB (175, 167, 75) and HSL (55°, 40%, 49%). Known for evoking optimism and creativity, this orange-yellow hue is well suited for marketing pages and hero sections. Lighter variations like #FFFFFF create softer gradients.

The complementary color of #AFA74B is #4B53AF, creating high-contrast pairings. For softer combinations, try analogous colors like #AF754B.

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

Contrast with #AFA74B

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

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

Need more control? Contrast Checker →

Frequently Asked Questions

What color is #AFA74B?

#AFA74B is a soft yellow color - a orange-yellow hue that evokes optimism and creativity.

What is the RGB value of #AFA74B?

#AFA74B in RGB is (175, 167, 75) - 175 red, 167 green, and 75 blue.

How to use #AFA74B in CSS?

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

What colors go well with #AFA74B?

#4B53AF (complementary), #AF754B (analogous), and #797434 (lighter shade) work well with #AFA74B.