MockHero

color_hex

Technical

Generate hex color codes like #6C5CE7. For design system testing, theme generation, and any field that stores colors as hex values.

Example Outputs

#6C5CE7#FF6B6B#00D2D3#1DD1A1#222F3E

API Usage

Send a POST request to generate color hex data:

curl -X POST https://mockhero.dev/api/v1/generate \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "tables": [
    {
      "name": "example",
      "count": 5,
      "fields": [
        {
          "name": "color_hex",
          "type": "color_hex"
        }
      ]
    }
  ]
}'

Common Use Cases

  • Theme generation
  • Design system testing
  • Color picker seeding
  • Brand color fields

Quick Info

Field Type
color_hex
Category
Technical
Parameters
None required
Output Format
JSON, CSV, SQL

Try it now

Generate color hex data instantly in the playground.

Related Types

Generate Color Hex + 155 more types via API

One API call. Multiple tables. Relational integrity. Free tier included.

Get Started Free