#AFA54B Color Information

Hex color code: #AFA54B

The hex color #AFA54B is a soft yellow with RGB values of (175, 165, 75) and HSL of (54°, 40%, 49%). It is typically applied in digital products.

Try:
Color NamePeru
HEX
#AFA54B
RGB
175, 165, 75
HSL
54°, 40%, 49%
CMYK
0%, 6%, 57%, 31%

Shades

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

Generate Gradient

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

Preview in UI

Button

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

Badge

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

Alert / Toast

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

Link / Accent

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

a { color: #AFA54B; }

Related Colors

Complementary

Analogous

Triadic

Split Complementary

Tetradic

Monochromatic

Popular Colors

Common HEX Colors

Color Theory

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

Current Complementary Triadic Analogous

RGB, HSL and CMYK Values

RGB

175, 165, 75

Red: 175 / Green: 165 / Blue: 75

HSL

54°, 40%, 49%

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

CMYK

0%, 6%, 57%, 31%

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

What color is #AFA54B?

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

Color Shades

Complementary Colors

Color Palette

HEX to RGB

Convert #AFA54B to RGB:

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

HEX to HSL

Convert #AFA54B to HSL:

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

HEX to CMYK

Convert #AFA54B to CMYK:

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

Color Meaning and Usage

A subtle yellow tone, #AFA54B has RGB (175, 165, 75) and HSL (54°, 40%, 49%). Known for evoking optimism and creativity, this orange-yellow hue is a common choice for dashboards and SaaS products. Lighter variations like #FFFFFF create softer gradients.

The complementary color of #AFA54B is #4B55AF, creating high-contrast pairings. For softer combinations, try analogous colors like #AF734B.

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

Contrast with #AFA54B

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

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

Need more control? Contrast Checker →

Frequently Asked Questions

What color is #AFA54B?

#AFA54B is a subtle yellow color - a orange-yellow hue that evokes optimism and creativity.

What is the RGB value of #AFA54B?

#AFA54B in RGB is (175, 165, 75) - 175 red, 165 green, and 75 blue.

How to use #AFA54B in CSS?

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

What colors go well with #AFA54B?

#4B55AF (complementary), #AF734B (analogous), and #797234 (lighter shade) work well with #AFA54B.