{
  "x402Version": 2,
  "id": 72370,
  "slug": "saylorinnovations-api-design-palette",
  "resource": "https://saylorinnovations.com/api/design/palette",
  "description": "Color palette from a hex color - complementary, split, analogous, triadic and tetradic harmonies, a 50 to 950 scale, tints, shades and WCAG contrast ratios",
  "type": "http",
  "serviceName": "Saylor Innovations Data Desk",
  "mimeType": "application/json",
  "resourceType": "API",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0xA2A8dF0f7CaaBEa4e120a2568118f141569fc8aa",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "10000",
      "amountUsd": 0.01,
      "maxTimeoutSeconds": 120
    },
    {
      "scheme": "exact",
      "network": "eip155:137",
      "payTo": "0xA2A8dF0f7CaaBEa4e120a2568118f141569fc8aa",
      "asset": "0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359",
      "amount": "10000",
      "amountUsd": 0.01,
      "maxTimeoutSeconds": 120
    },
    {
      "scheme": "exact",
      "network": "eip155:42161",
      "payTo": "0xA2A8dF0f7CaaBEa4e120a2568118f141569fc8aa",
      "asset": "0xaf88d065e77c8cC2239327C5EDb3A432268e5831",
      "amount": "10000",
      "amountUsd": 0.01,
      "maxTimeoutSeconds": 120
    },
    {
      "scheme": "exact",
      "network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
      "payTo": "7LSjfrJf8fNsB8VA9u7N3WEn25smQLpob3SvyUvXacy7",
      "asset": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
      "amount": "10000",
      "amountUsd": 0.01,
      "maxTimeoutSeconds": 120
    },
    {
      "scheme": "exact",
      "network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
      "payTo": "7LSjfrJf8fNsB8VA9u7N3WEn25smQLpob3SvyUvXacy7",
      "asset": "Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB",
      "amount": "10000",
      "amountUsd": 0.01,
      "maxTimeoutSeconds": 120
    },
    {
      "scheme": "exact",
      "network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
      "payTo": "7LSjfrJf8fNsB8VA9u7N3WEn25smQLpob3SvyUvXacy7",
      "asset": "So11111111111111111111111111111111111111112",
      "amount": "95830",
      "amountUsd": 0.01,
      "maxTimeoutSeconds": 120
    }
  ],
  "outputSchema": {
    "type": "object",
    "properties": {
      "input": {
        "type": "string",
        "description": "The colour that was normalised"
      },
      "hsl": {
        "type": "object",
        "description": "Hue, saturation and lightness",
        "properties": {
          "h": {
            "description": "Hue in degrees",
            "type": [
              "number",
              "null"
            ]
          },
          "s": {
            "description": "Saturation in percent",
            "type": [
              "number",
              "null"
            ]
          },
          "l": {
            "description": "Lightness in percent",
            "type": [
              "number",
              "null"
            ]
          }
        }
      },
      "rgb": {
        "type": "object",
        "description": "Red, green and blue channels",
        "properties": {
          "r": {
            "description": "Red 0-255",
            "type": [
              "number",
              "null"
            ]
          },
          "g": {
            "description": "Green 0-255",
            "type": [
              "number",
              "null"
            ]
          },
          "b": {
            "description": "Blue 0-255",
            "type": [
              "number",
              "null"
            ]
          }
        }
      },
      "base": {
        "type": "object",
        "properties": {
          "hex": {
            "description": "Normalised hex colour",
            "type": [
              "string",
              "null"
            ]
          },
          "contrast_on_white": {
            "type": [
              "number",
              "null"
            ],
            "description": "Contrast on white"
          },
          "contrast_on_black": {
            "type": [
              "number",
              "null"
            ],
            "description": "Contrast on black"
          },
          "readable_text": {
            "type": [
              "string",
              "null"
            ],
            "description": "Readable text"
          }
        },
        "description": "Base asset or base currency"
      },
      "harmonies": {
        "type": "object",
        "description": "Complementary, split, analogous, triadic and tetradic colours with contrast ratios"
      },
      "scale_50_to_950": {
        "type": "object",
        "description": "Scale 50 to 950"
      },
      "css_variables": {
        "type": "string",
        "description": "Css variables"
      },
      "tints": {
        "type": "array",
        "description": "Lighter mixes with white",
        "items": {
          "type": "object",
          "properties": {
            "hex": {
              "description": "Hex colour of the tint",
              "type": [
                "string",
                "null"
              ]
            },
            "mix_with_white_percent": {
              "description": "Mix with white, as a percentage"
            }
          }
        }
      },
      "shades": {
        "type": "array",
        "description": "Darker mixes with black",
        "items": {
          "type": "object",
          "properties": {
            "hex": {
              "description": "Hex colour of the shade",
              "type": [
                "string",
                "null"
              ]
            },
            "mix_with_black_percent": {
              "description": "Mix with black, as a percentage"
            }
          }
        }
      },
      "temperature": {
        "type": "string",
        "description": "Whether the colour reads warm, cool or neutral"
      },
      "note": {
        "type": "string",
        "description": "Caveat or context for reading the result"
      },
      "source": {
        "type": "string",
        "description": "Data source the values come from"
      }
    },
    "required": [
      "input",
      "harmonies",
      "scale_50_to_950"
    ]
  },
  "extensions": {
    "bazaar": {
      "info": {
        "input": {
          "type": "http",
          "method": "GET",
          "queryParams": {
            "color": "3366ff"
          }
        },
        "output": {
          "type": "json",
          "example": {
            "input": "#3366ff",
            "hsl": {
              "h": 225,
              "s": 100,
              "l": 60
            },
            "rgb": {
              "r": 51,
              "g": 102,
              "b": 255
            },
            "base": {
              "hex": "#3366ff",
              "contrast_on_white": 4.68,
              "contrast_on_black": 4.49,
              "readable_text": "#ffffff"
            },
            "harmonies": {
              "complementary": [
                {
                  "hex": "#ffcc33",
                  "contrast_on_white": 1.51,
                  "contrast_on_black": 13.94,
                  "readable_text": "#000000"
                }
              ],
              "split_complementary": [
                {
                  "hex": "#ff6633",
                  "contrast_on_white": 2.92,
                  "contrast_on_black": 7.2,
                  "readable_text": "#000000"
                }
              ],
              "analogous": [
                {
                  "hex": "#33ccff",
                  "contrast_on_white": 1.87,
                  "contrast_on_black": 11.22,
                  "readable_text": "#000000"
                }
              ],
              "triadic": [
                {
                  "hex": "#ff3366",
                  "contrast_on_white": 3.55,
                  "contrast_on_black": 5.92,
                  "readable_text": "#000000"
                }
              ],
              "tetradic_square": [
                {
                  "hex": "#ff33cc",
                  "contrast_on_white": 3.18,
                  "contrast_on_black": 6.6,
                  "readable_text": "#000000"
                }
              ]
            },
            "scale_50_to_950": {
              "50": "#f0f4fe",
              "100": "#dde5fd",
              "200": "#b3c6ff",
              "300": "#7a9cff",
              "400": "#3d6eff",
              "500": "#0040ff",
              "600": "#0034d1",
              "700": "#002aa8",
              "800": "#002080",
              "900": "#001657",
              "950": "#000d33"
            },
            "css_variables": "--color-50: #f0f4fe; --color-100: #dde5fd; --color-200: #b3c6ff; --color-300: #…",
            "tints": [
              {
                "mix_with_white_percent": 10,
                "hex": "#4775ff"
              }
            ],
            "shades": [
              {
                "mix_with_black_percent": 10,
                "hex": "#2e5ce6"
              }
            ],
            "temperature": "cool",
            "note": "Harmonies rotate the hue on the HSL wheel; contrast ratios follow WCAG 2.x (4.5…",
            "source": "color math"
          }
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "input": {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "const": "http"
              },
              "method": {
                "type": "string",
                "enum": [
                  "GET"
                ]
              },
              "queryParams": {
                "type": "object",
                "properties": {
                  "color": {
                    "type": "string",
                    "description": "Hex color such as 3366ff or #36f"
                  }
                },
                "required": [
                  "color"
                ]
              }
            },
            "required": [
              "type",
              "method"
            ],
            "additionalProperties": false
          },
          "output": {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "const": "json"
              },
              "example": {
                "type": "object",
                "properties": {
                  "input": {
                    "type": "string",
                    "description": "The colour that was normalised"
                  },
                  "hsl": {
                    "type": "object",
                    "description": "Hue, saturation and lightness",
                    "properties": {
                      "h": {
                        "description": "Hue in degrees",
                        "type": [
                          "number",
                          "null"
                        ]
                      },
                      "s": {
                        "description": "Saturation in percent",
                        "type": [
                          "number",
                          "null"
                        ]
                      },
                      "l": {
                        "description": "Lightness in percent",
                        "type": [
                          "number",
                          "null"
                        ]
                      }
                    }
                  },
                  "rgb": {
                    "type": "object",
                    "description": "Red, green and blue channels",
                    "properties": {
                      "r": {
                        "description": "Red 0-255",
                        "type": [
                          "number",
                          "null"
                        ]
                      },
                      "g": {
                        "description": "Green 0-255",
                        "type": [
                          "number",
                          "null"
                        ]
                      },
                      "b": {
                        "description": "Blue 0-255",
                        "type": [
                          "number",
                          "null"
                        ]
                      }
                    }
                  },
                  "base": {
                    "type": "object",
                    "properties": {
                      "hex": {
                        "description": "Normalised hex colour",
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "contrast_on_white": {
                        "type": [
                          "number",
                          "null"
                        ],
                        "description": "Contrast on white"
                      },
                      "contrast_on_black": {
                        "type": [
                          "number",
                          "null"
                        ],
                        "description": "Contrast on black"
                      },
                      "readable_text": {
                        "type": [
                          "string",
                          "null"
                        ],
                        "description": "Readable text"
                      }
                    },
                    "description": "Base asset or base currency"
                  },
                  "harmonies": {
                    "type": "object",
                    "description": "Complementary, split, analogous, triadic and tetradic colours with contrast ratios"
                  },
                  "scale_50_to_950": {
                    "type": "object",
                    "description": "Scale 50 to 950"
                  },
                  "css_variables": {
                    "type": "string",
                    "description": "Css variables"
                  },
                  "tints": {
                    "type": "array",
                    "description": "Lighter mixes with white",
                    "items": {
                      "type": "object",
                      "properties": {
                        "hex": {
                          "description": "Hex colour of the tint",
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "mix_with_white_percent": {
                          "description": "Mix with white, as a percentage"
                        }
                      }
                    }
                  },
                  "shades": {
                    "type": "array",
                    "description": "Darker mixes with black",
                    "items": {
                      "type": "object",
                      "properties": {
                        "hex": {
                          "description": "Hex colour of the shade",
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "mix_with_black_percent": {
                          "description": "Mix with black, as a percentage"
                        }
                      }
                    }
                  },
                  "temperature": {
                    "type": "string",
                    "description": "Whether the colour reads warm, cool or neutral"
                  },
                  "note": {
                    "type": "string",
                    "description": "Caveat or context for reading the result"
                  },
                  "source": {
                    "type": "string",
                    "description": "Data source the values come from"
                  }
                },
                "required": [
                  "input",
                  "harmonies",
                  "scale_50_to_950"
                ]
              }
            },
            "required": [
              "type"
            ]
          }
        },
        "required": [
          "input"
        ]
      }
    }
  },
  "tags": [
    "color palette from a hex color",
    "complementary and triadic colors",
    "generate tailwind style color",
    "tints and shades of a color",
    "accessible text color"
  ],
  "sourceHost": "saylorinnovations.com",
  "lastUpdated": "2026-10-26T22:14:01.938Z",
  "quality": {},
  "metadata": {
    "serviceName": "Saylor Innovations Data Desk",
    "method": "GET",
    "mimeType": "application/json",
    "inputSchema": {
      "type": "object",
      "properties": {
        "color": {
          "type": "string",
          "description": "Hex color such as 3366ff or #36f"
        }
      },
      "required": [
        "color"
      ]
    },
    "exampleResponse": {
      "input": "#3366ff",
      "hsl": {
        "h": 225,
        "s": 100,
        "l": 60
      },
      "rgb": {
        "r": 51,
        "g": 102,
        "b": 255
      },
      "base": {
        "hex": "#3366ff",
        "contrast_on_white": 4.68,
        "contrast_on_black": 4.49,
        "readable_text": "#ffffff"
      },
      "harmonies": {
        "complementary": [
          {
            "hex": "#ffcc33",
            "contrast_on_white": 1.51,
            "contrast_on_black": 13.94,
            "readable_text": "#000000"
          }
        ],
        "split_complementary": [
          {
            "hex": "#ff6633",
            "contrast_on_white": 2.92,
            "contrast_on_black": 7.2,
            "readable_text": "#000000"
          }
        ],
        "analogous": [
          {
            "hex": "#33ccff",
            "contrast_on_white": 1.87,
            "contrast_on_black": 11.22,
            "readable_text": "#000000"
          }
        ],
        "triadic": [
          {
            "hex": "#ff3366",
            "contrast_on_white": 3.55,
            "contrast_on_black": 5.92,
            "readable_text": "#000000"
          }
        ],
        "tetradic_square": [
          {
            "hex": "#ff33cc",
            "contrast_on_white": 3.18,
            "contrast_on_black": 6.6,
            "readable_text": "#000000"
          }
        ]
      },
      "scale_50_to_950": {
        "50": "#f0f4fe",
        "100": "#dde5fd",
        "200": "#b3c6ff",
        "300": "#7a9cff",
        "400": "#3d6eff",
        "500": "#0040ff",
        "600": "#0034d1",
        "700": "#002aa8",
        "800": "#002080",
        "900": "#001657",
        "950": "#000d33"
      },
      "css_variables": "--color-50: #f0f4fe; --color-100: #dde5fd; --color-200: #b3c6ff; --color-300: #…",
      "tints": [
        {
          "mix_with_white_percent": 10,
          "hex": "#4775ff"
        }
      ],
      "shades": [
        {
          "mix_with_black_percent": 10,
          "hex": "#2e5ce6"
        }
      ],
      "temperature": "cool",
      "note": "Harmonies rotate the hue on the HSL wheel; contrast ratios follow WCAG 2.x (4.5…",
      "source": "color math"
    },
    "parameterLocation": "query",
    "extensions": {
      "bazaar": {
        "info": {
          "input": {
            "type": "http",
            "method": "GET",
            "queryParams": {
              "color": "3366ff"
            }
          },
          "output": {
            "type": "json",
            "example": {
              "input": "#3366ff",
              "hsl": {
                "h": 225,
                "s": 100,
                "l": 60
              },
              "rgb": {
                "r": 51,
                "g": 102,
                "b": 255
              },
              "base": {
                "hex": "#3366ff",
                "contrast_on_white": 4.68,
                "contrast_on_black": 4.49,
                "readable_text": "#ffffff"
              },
              "harmonies": {
                "complementary": [
                  {
                    "hex": "#ffcc33",
                    "contrast_on_white": 1.51,
                    "contrast_on_black": 13.94,
                    "readable_text": "#000000"
                  }
                ],
                "split_complementary": [
                  {
                    "hex": "#ff6633",
                    "contrast_on_white": 2.92,
                    "contrast_on_black": 7.2,
                    "readable_text": "#000000"
                  }
                ],
                "analogous": [
                  {
                    "hex": "#33ccff",
                    "contrast_on_white": 1.87,
                    "contrast_on_black": 11.22,
                    "readable_text": "#000000"
                  }
                ],
                "triadic": [
                  {
                    "hex": "#ff3366",
                    "contrast_on_white": 3.55,
                    "contrast_on_black": 5.92,
                    "readable_text": "#000000"
                  }
                ],
                "tetradic_square": [
                  {
                    "hex": "#ff33cc",
                    "contrast_on_white": 3.18,
                    "contrast_on_black": 6.6,
                    "readable_text": "#000000"
                  }
                ]
              },
              "scale_50_to_950": {
                "50": "#f0f4fe",
                "100": "#dde5fd",
                "200": "#b3c6ff",
                "300": "#7a9cff",
                "400": "#3d6eff",
                "500": "#0040ff",
                "600": "#0034d1",
                "700": "#002aa8",
                "800": "#002080",
                "900": "#001657",
                "950": "#000d33"
              },
              "css_variables": "--color-50: #f0f4fe; --color-100: #dde5fd; --color-200: #b3c6ff; --color-300: #…",
              "tints": [
                {
                  "mix_with_white_percent": 10,
                  "hex": "#4775ff"
                }
              ],
              "shades": [
                {
                  "mix_with_black_percent": 10,
                  "hex": "#2e5ce6"
                }
              ],
              "temperature": "cool",
              "note": "Harmonies rotate the hue on the HSL wheel; contrast ratios follow WCAG 2.x (4.5…",
              "source": "color math"
            }
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "type": "object",
          "properties": {
            "input": {
              "type": "object",
              "properties": {
                "type": {
                  "type": "string",
                  "const": "http"
                },
                "method": {
                  "type": "string",
                  "enum": [
                    "GET"
                  ]
                },
                "queryParams": {
                  "type": "object",
                  "properties": {
                    "color": {
                      "type": "string",
                      "description": "Hex color such as 3366ff or #36f"
                    }
                  },
                  "required": [
                    "color"
                  ]
                }
              },
              "required": [
                "type",
                "method"
              ],
              "additionalProperties": false
            },
            "output": {
              "type": "object",
              "properties": {
                "type": {
                  "type": "string",
                  "const": "json"
                },
                "example": {
                  "type": "object",
                  "properties": {
                    "input": {
                      "type": "string",
                      "description": "The colour that was normalised"
                    },
                    "hsl": {
                      "type": "object",
                      "description": "Hue, saturation and lightness",
                      "properties": {
                        "h": {
                          "description": "Hue in degrees",
                          "type": [
                            "number",
                            "null"
                          ]
                        },
                        "s": {
                          "description": "Saturation in percent",
                          "type": [
                            "number",
                            "null"
                          ]
                        },
                        "l": {
                          "description": "Lightness in percent",
                          "type": [
                            "number",
                            "null"
                          ]
                        }
                      }
                    },
                    "rgb": {
                      "type": "object",
                      "description": "Red, green and blue channels",
                      "properties": {
                        "r": {
                          "description": "Red 0-255",
                          "type": [
                            "number",
                            "null"
                          ]
                        },
                        "g": {
                          "description": "Green 0-255",
                          "type": [
                            "number",
                            "null"
                          ]
                        },
                        "b": {
                          "description": "Blue 0-255",
                          "type": [
                            "number",
                            "null"
                          ]
                        }
                      }
                    },
                    "base": {
                      "type": "object",
                      "properties": {
                        "hex": {
                          "description": "Normalised hex colour",
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "contrast_on_white": {
                          "type": [
                            "number",
                            "null"
                          ],
                          "description": "Contrast on white"
                        },
                        "contrast_on_black": {
                          "type": [
                            "number",
                            "null"
                          ],
                          "description": "Contrast on black"
                        },
                        "readable_text": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "Readable text"
                        }
                      },
                      "description": "Base asset or base currency"
                    },
                    "harmonies": {
                      "type": "object",
                      "description": "Complementary, split, analogous, triadic and tetradic colours with contrast ratios"
                    },
                    "scale_50_to_950": {
                      "type": "object",
                      "description": "Scale 50 to 950"
                    },
                    "css_variables": {
                      "type": "string",
                      "description": "Css variables"
                    },
                    "tints": {
                      "type": "array",
                      "description": "Lighter mixes with white",
                      "items": {
                        "type": "object",
                        "properties": {
                          "hex": {
                            "description": "Hex colour of the tint",
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "mix_with_white_percent": {
                            "description": "Mix with white, as a percentage"
                          }
                        }
                      }
                    },
                    "shades": {
                      "type": "array",
                      "description": "Darker mixes with black",
                      "items": {
                        "type": "object",
                        "properties": {
                          "hex": {
                            "description": "Hex colour of the shade",
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "mix_with_black_percent": {
                            "description": "Mix with black, as a percentage"
                          }
                        }
                      }
                    },
                    "temperature": {
                      "type": "string",
                      "description": "Whether the colour reads warm, cool or neutral"
                    },
                    "note": {
                      "type": "string",
                      "description": "Caveat or context for reading the result"
                    },
                    "source": {
                      "type": "string",
                      "description": "Data source the values come from"
                    }
                  },
                  "required": [
                    "input",
                    "harmonies",
                    "scale_50_to_950"
                  ]
                }
              },
              "required": [
                "type"
              ]
            }
          },
          "required": [
            "input"
          ]
        }
      }
    },
    "examples": [
      {
        "label": "Unpaid discovery call",
        "method": "GET",
        "url": "https://saylorinnovations.com/api/design/palette?color=3366ff",
        "expectedStatus": 402
      }
    ],
    "cacheTtlSeconds": 0,
    "capabilities": [],
    "noAccountRequired": true,
    "noApiKeyRequired": true,
    "sideEffects": "Paid calls settle the advertised payment; see the provider contract for execution behavior.",
    "payment": {
      "protocol": "x402",
      "settlement": "direct-to-provider"
    },
    "provider": {
      "name": "Saylor Innovations",
      "host": "saylorinnovations.com",
      "manifestUrl": "https://saylorinnovations.com/.well-known/x402.json"
    }
  },
  "liveness": {
    "reliability": null
  },
  "verified": true,
  "featured": false,
  "provider": {
    "host": "saylorinnovations.com",
    "manifest_name": "Saylor Innovations Knowledge Base",
    "source": "submitted",
    "source_manifest_url": "https://saylorinnovations.com/.well-known/x402.json",
    "submitted_at": "2026-10-26T05:52:02.113Z"
  },
  "exampleResponse": {
    "input": "string",
    "hsl": {
      "h": 0,
      "s": 0,
      "l": 0
    },
    "rgb": {
      "r": 0,
      "g": 0,
      "b": 0
    },
    "base": {
      "hex": "string",
      "contrast_on_white": 0,
      "contrast_on_black": 0,
      "readable_text": "string"
    },
    "harmonies": {},
    "scale_50_to_950": {},
    "css_variables": "string",
    "tints": [
      {
        "hex": "string",
        "mix_with_white_percent": null
      }
    ],
    "shades": [
      {
        "hex": "string",
        "mix_with_black_percent": null
      }
    ],
    "temperature": "string",
    "note": "string",
    "source": "string"
  }
}