Imageslot Color Customization & Accessibility Guide
Learn how to control background, text, and shadow colors in Imageslot. Create on-brand, accessible placeholder images for web design, UI, and marketing—all with easy hex code parameters and pro-level tips.
What is Color Customization in Imageslot?
Color customization lets you set the background, text (foreground), and shadow colors of your Imageslot placeholder images—directly in the API URL. This helps you:
- Match your brand palette or project guidelines
- Improve readability and user experience
- Ensure accessibility for all users
- Make prototypes, wireframes, and previews visually realistic
Imageslot Color Parameters Explained
bg (Background)
Sets the background color of your image. Accepts hex codes (e.g. bg=3DA35D
for green) or bg=transparent
for PNGs.
?bg=3DA35D
fg (Foreground/Text)
Controls the color of the text overlay. Accepts hex codes (e.g. fg=23272F
for dark gray).
?fg=23272F
shadow (Text Shadow)
Optional. Sets the color of the drop shadow behind text. Accepts hex codes (e.g. shadow=173559
). Helps boost contrast on busy or bright backgrounds.
?shadow=173559
How to Use Hex Codes in Imageslot URLs
Hex codes are 6-digit codes representing colors (e.g., #173559 for deep blue). In Imageslot URLs, don’t include the #—just use the 6 digits or letters directly.
- Correct:
?bg=3DA35D
- Incorrect:
?bg=#3DA35D
(do not use #)
/v1/600x200?bg=173559&fg=fff&text=Hex+Colors&filetype=png
- Using # in the value (should be omitted)
- Misspelling hex code or using only 3 digits (always use full 6 digits)
- Trying to use named colors (e.g.
red
,blue
)—only hex ortransparent
is supported for bg
Best Practices for Accessible Colors in Imageslot
Accessible color combinations ensure everyone—including users with low vision or color blindness—can read your placeholder text. Good contrast also enhances clarity during design reviews and handoff.
- Use high-contrast pairs (e.g., dark text on light background, or vice versa)
- Avoid color combos like light gray text on white, or red on green
- Test your combination with our color contrast tool
shadow
color for extra readability.
Sample Color Combinations for Imageslot
/v1/320x80?bg=173559&fg=fff&shadow=3DA35D&text=Sample+1&filetype=png
Deep blue background, white text, green shadow (default style)
/v1/320x80?bg=3DA35D&fg=fff&shadow=173559&text=Sample+2&filetype=png
Vibrant green background, white text, blue shadow
/v1/320x80?bg=fff&fg=23272F&shadow=1A726B&text=Sample+3&filetype=png
White background, dark text, teal shadow (very readable)
/v1/320x80?bg=ececec&fg=6C757D&shadow=23272F&text=Sample+4&filetype=png
Light gray background, medium gray text, dark shadow (neutral)
/v1/320x80?bg=23272F&fg=fff&shadow=3DA35D&text=Sample+5&filetype=png
Charcoal background, white text, green shadow (for dark mode previews)
/v1/320x80?bg=1A726B&fg=fff&shadow=23272F&text=Sample+6&filetype=png
Teal background, white text, dark shadow (modern/brand look)
Live Demo: Experiment with Imageslot Colors
Common Color Mistakes & Pro Tips
Common Pitfalls
- Using low-contrast color combinations (e.g., light gray on white)
- Forgetting to remove # from hex codes in URLs
- Using named colors (
red
,blue
) instead of hex - Specifying unsupported color formats (e.g.,
rgb()
,hsl()
) - Not updating all parameters when changing your palette
- Neglecting shadow color, resulting in unreadable text
Pro Tips
- Use your brand colors for bg and fg to match your site or app
- Add a subtle shadow (
shadow=23272F
) for extra clarity on busy backgrounds - Test color combos on multiple screens for contrast
- Use the color picker tool to get perfect hex codes
- Check API docs for all color parameter options
FAQ: Imageslot Color Customization & Accessibility
173559
for blue), and for the background parameter (bg
), you can also use transparent
(for PNG images). Named colors, RGB, or HSL formats are not supported—always use hex or transparent
for bg.
&cb=1
to force reload.