trycolors logo
Trycolors API

Mix and Unmix Colors with Ease

Enhance your applications with our color mixing API. Get started quickly.

Explore Docs Open Playground

Getting Started

  1. Sign up for an account at trycolors.com/signin.
  2. Generate your API key in your user account settings.
  3. Test the API endpoints using our Swagger sandbox.

Example Code:

async function mixColors() {
    const apiKey = 'YOUR_API_KEY'; // Replace with your actual API key
    const endpoint = 'https://api.trycolors.com/v1/mix-colors';
    const payload = {
        colors: [
            { hex: '#FFAA16', count: 1 },
            { hex: '#BA12FF', count: 1 }
        ]
    };

    try {
        const response = await axios.post(endpoint, payload, {
            headers: { 'X-API-KEY': apiKey }
        });
        console.log('Mixed Color:', response.data.mixedColor);
    } catch (error) {
        console.error('Error mixing colors:', error.response.data);
    }
}

mixColors();

Rate Limits

API Endpoint Rate Limit (requests/second) Daily Limit (requests/day)
Mix Colors 2 50
Unmix Color 1 10
Similar paints 1 10

Stay tuned for upcoming paid tiers with enhanced rate limits!

Contact Us

Have questions or feedback? Contact us through our form.