#AFA274 Color Information

Hex color code: #AFA274

A pastel yellow shade, #AFA274 appears as (175, 162, 116) in RGB and (47°, 27%, 57%) in HSL. It is commonly used in modern UI design.

Try:
Color NameRosy Brown
HEX
#AFA274
RGB
175, 162, 116
HSL
47°, 27%, 57%
CMYK
0%, 7%, 34%, 31%

Shades

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

Generate Gradient

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

Preview in UI

Button

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

Badge

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

Alert / Toast

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

Link / Accent

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

a { color: #AFA274; }

Related Colors

Complementary

Analogous

Triadic

Split Complementary

Tetradic

Monochromatic

Popular Colors

Common HEX Colors

Color Theory

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

Current Complementary Triadic Analogous

RGB, HSL and CMYK Values

RGB

175, 162, 116

Red: 175 / Green: 162 / Blue: 116

HSL

47°, 27%, 57%

Hue: 47° / Saturation: 27% / Lightness: 57%

CMYK

0%, 7%, 34%, 31%

Cyan: 0% / Magenta: 7% / Yellow: 34% / Key: 31%

What color is #AFA274?

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

Color Shades

Complementary Colors

Color Palette

HEX to RGB

Convert #AFA274 to RGB:

rgb(175, 162, 116)HEX to RGB Converter →

HEX to HSL

Convert #AFA274 to HSL:

hsl(47, 27%, 57%)RGB to HSL Converter →

HEX to CMYK

Convert #AFA274 to CMYK:

cmyk(0%, 7%, 34%, 31%)Color Converter →

Color Meaning and Usage

A gentle yellow tone, #AFA274 has RGB (175, 162, 116) and HSL (47°, 27%, 57%). Known for evoking optimism and creativity, this orange-yellow hue is often used for buttons, highlights, and accents. Lighter variations like #FFFFFF create softer gradients.

The complementary color of #AFA274 is #7481AF, creating high-contrast pairings. For softer combinations, try analogous colors like #AF8574.

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

Contrast with #AFA274

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

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

Need more control? Contrast Checker →

Frequently Asked Questions

What color is #AFA274?

#AFA274 is a gentle yellow color - a orange-yellow hue that evokes optimism and creativity.

What is the RGB value of #AFA274?

#AFA274 in RGB is (175, 162, 116) - 175 red, 162 green, and 116 blue.

How to use #AFA274 in CSS?

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

What colors go well with #AFA274?

#7481AF (complementary), #AF8574 (analogous), and #887B4E (lighter shade) work well with #AFA274.