Find Flowers by Color
Endpoints
Flower Color Lookup
Search 2,509 flower spectral measurements to find flowers matching a given color. Colors are matched using perceptual distance in CIE LAB color space. Data source: Arnold SEJ et al., 2010 FReD: The Floral Reflectance Database. PLoS ONE 5(12): e14287.
GET
Find Flowers by Color
Find flowers by color using spectral reflectance data from the Floral Reflectance Database (FReD).
Bees cannot see red but can see ultraviolet, which is invisible to humans. The
Returns all plant families with sample counts.
Returns all human-perceived color categories.
Returns all bee-perceived color categories.
Returns complete record including spectral color space coordinates.
Overview
This endpoint searches a database of 2,509 flower spectral measurements to find flowers matching a given color. Colors are matched using perceptual distance in CIE LAB color space, providing results that align with human color perception. The data comes from the Floral Reflectance Database (FReD), a scientific database of flower spectral reflectance measurements used to study plant-pollinator interactions and color vision.Color Input Formats
Thecolor parameter accepts multiple formats:
| Format | Examples |
|---|---|
| Color name | red, blue, lavender, coral, chartreuse |
| Hex code | #FF5733, FF5733, #F00 |
| RGB values | rgb(255, 87, 51), 255,87,51 |
Supported Color Names
Common colors:red, green, blue, yellow, orange, purple, pink, white, black, brown, violet, magenta, cyan
Flower-specific: lavender, coral, salmon, crimson, rose, peach, cream, ivory, gold, amber, lilac, mauve, plum, indigo, turquoise, chartreuse, burgundy, fuchsia, periwinkle
Query Parameters
The color to search for. Accepts color names, hex codes, or RGB values.
Maximum number of results to return (1-100).
Filter by human-perceived color category. Use
/v1/flowers/human-colours to list available values.Filter by bee-perceived color category. Use
/v1/flowers/bee-colours to list available values.Filter by taxonomic family. Use
/v1/flowers/families to list available families.Response
Parsed query parameters.
Matching flowers sorted by color similarity.
Total number of flowers in the database.
Academic citation for the data source.
Example Request
Example Response
Understanding Bee Color Vision
Bees see colors differently than humans. They have three photoreceptors:| Photoreceptor | Peak Wavelength | Notes |
|---|---|---|
| UV | ~340nm | Invisible to humans |
| Blue | ~430nm | Similar to human blue |
| Green | ~540nm | Similar to human green |
bee_colour field indicates how bees perceive the flower:
- UV: Reflects mainly ultraviolet
- blue: Reflects mainly blue wavelengths
- blue-green: Reflects blue and green
- UV-blue: Appears “bee purple”
- UV-green: Unique to bee vision
- white: Broad spectrum reflection
Additional Endpoints
List Families
List Human Colors
List Bee Colors
Get Flower by ID
Data Citation
This endpoint uses data from the Floral Reflectance Database (FReD):Arnold SEJ, Faruq S, Savolainen V, McOwan PW, Chittka L, 2010 FReD: The Floral Reflectance Database — A Web Portal for Analyses of Flower Colour. PLoS ONE 5(12): e14287. doi:10.1371/journal.pone.0014287
Error Handling
| Status Code | Description |
|---|---|
| 200 | Success |
| 400 | Invalid color format |
| 404 | Flower ID not found (for /{id} endpoint) |
| 503 | Database not available |
Query Parameters
Color to search for. Accepts color names (red, lavender), hex codes (#FF5733), or RGB values (rgb(255,87,51) or 255,87,51).
Maximum number of results (1-100).
Required range:
1 <= x <= 100Filter by taxonomic family (e.g., Asteraceae).
Filter by human-perceived color category.
Filter by bee-perceived color category (UV, blue, blue-green, green, UV-blue, UV-green, white).

