Palettes / Colors / #AFB331
#AFB331 — Yellow
#AFB331 is a yellow color we call Yellow, closest to the named color YellowGreen (#9ACD32). It belongs to the yellow family.
Color name
Closest CSS keyword: yellowgreen (#9ACD32) — not an exact match. CSS yellowgreen gives you #9ACD32, a different color; use #AFB331 when you need this exact shade.
Sources: common names follow widely used color-name references; CSS keywords and their hex values follow the CSS Color specification.
#AFB331 is a warm yellow color associated with optimism, attention and cheer. It sits comfortably in the middle: usable for large areas in soft schemes, or as a supporting color beside something stronger.
Its strongest partner is its complement #3631B4; it also sits naturally between #B47731 and #6EB431. In the palettes below you can see it working alongside real color combinations from our collection.
Color values
| HEX | #AFB331 |
|---|---|
| RGB | 175, 179, 49 |
| HSL | 62°, 57%, 45% |
| HSV | 62°, 73%, 70% |
| CMYK | 2%, 0%, 73%, 30% |
| XYZ | 34.35, 41.58, 9.12 |
| Yxy | 41.58, 0.4039, 0.4888 |
| CIE-Lab | 70.58, -17.02, 61.76 |
| Hunter Lab | 64.48, -14.52, 34.52 |
RGB & CMYK percentages
Red 69% · Green 70% · Blue 19%
Cyan 2% · Magenta 0% · Yellow 73% · Key 30%
CMYK values are unprofiled approximations for screen reference — not a print-proofing guarantee.
Previews
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
CSS code for #AFB331
.text { color: #AFB331; }
.background { background-color: #AFB331; }
.border { border: 3px solid #AFB331; }
.text-rgb { color: rgb(175, 179, 49); }
.text-hsl { color: hsl(62, 57%, 45%); }
.text-shadow-hex { text-shadow: 4px 4px 2px #AFB331; }
.text-shadow-rgba { text-shadow: 4px 4px 2px rgba(175, 179, 49, 0.8); }
.box-shadow-hex { box-shadow: 1px 1px 3px 2px #AFB331; }
.box-shadow-rgba { box-shadow: 1px 1px 3px 2px rgba(175, 179, 49, 0.8); }
HTML: <p style="color:#AFB331">Text here</p> · <div style="background-color:#AFB331">Div content here</div>
Shades of #AFB331
Tints of #AFB331
Tones of #AFB331
Color harmonies
Complementary — #3631B4:
Analogous:
Triadic:
Contrast & accessibility
| Against white text | 2.25:1 Fails |
|---|---|
| Against black text | 9.32:1 AAA |
Best text color on #AFB331: #000000.
Semi-transparent (opacity) text on #AFB331
Text set with opacity blends into the background, so its real contrast is lower than the solid ratios above. Choose a text color and an opacity to see the blended color and its true ratio:
Smaller body text shows the effect best.
Blended color: · Contrast against #AFB331: ·
How #AFB331 looks with color blindness
Simulated with standard Machado color-vision-deficiency matrices — useful when this color carries meaning in charts, maps or interfaces:
Closest design-system colors
The nearest matches in the Tailwind CSS, Material Design and Bootstrap palettes — handy when you need a framework class instead of a raw hex:
Palettes with a similar color
These palettes use a close neighbour of #AFB331 rather than the exact color:
Similar colors
The closest colors that actually appear in our palette collection — click any to open its page:
Browse neighbouring colors
Frequently asked questions
What color is #AFB331?
#AFB331 is Yellow, a yellow color (RGB 175, 179, 49). Its closest standard named color is YellowGreen.
What is the RGB and HSL of #AFB331?
#AFB331 is RGB 175, 179, 49 — HSL 62°, 57%, 45% — CMYK 2%, 0%, 73%, 30%.
What colors go with #AFB331?
Its complement is #3631B4; analogous partners are #B47731 and #6EB431. It also appears in 6+ palettes in our collection.
Can I use #AFB331 for text?
Black text on #AFB331 has a contrast ratio of 9.32:1 (passes WCAG AA); white text gives 2.25:1.