Colour try-on.
A booking app for a hair salon where you try a colour on before you book it. Sixteen shades on a real photo, and the maths that keeps it looking like hair.
- Project
- Studio prototype
- Built with
- Canvas and plain JavaScript
- Year
- 2026
- Status
- Prototype
The brief.
Colour is the hardest salon service to sell online. People can’t picture it, so they put off booking or turn up unsure.
Give a salon’s booking app a try-on that looks believable, runs on a phone and ends in a booking with the shade attached.
The idea.
Tap the hair, pick a shade, slide the intensity, hold to compare. Four moves, no account and no upload.
The shade you land on goes straight into the booking, so the stylist starts the consultation knowing what you liked.
Pick a shade.
Tap her hair or choose a shade. Slide the intensity, then hold Compare to see the original.

Preview only. Your stylist confirms the final formula at a free colour consultation.
Look inside.
Switch views and turn parts of the colour maths off to see what each one does. Pick a few shades as you go: the differences show most on the dark and the very light ones.
How it works.
- 01
One photo, one mask
The hair is cut out once as a soft greyscale image the same size as the photo: white is hair, black isn’t, grey is a loose strand.
- 02
A tidier mask
The first mask missed the hair behind her neck and some outer curls. A small colour-and-texture classifier, trained on the mask itself, found them.
- 03
Colour that keeps the light
Each pixel gets the shade multiplied by its original brightness. Lighter shades flatten the contrast a little, the way a lift does in the chair.
- 04
Fast enough on a phone
About 716,000 pixels in one pass of plain JavaScript, only when something changes. No library, no upload, nothing leaves the device.
- 05
Shade into booking
The shade name and code travel with the booking, so the salon can see which colours people try and which ones they book.
- 06
What comes next
This works on a prepared photo. A live selfie needs the hair found on every frame, which on-device segmentation models can now do in the browser.
Where it would work.
Worth it where the hesitation is ‘what will it look like on me’. It has to end in a booking or a sale, or it’s a toy.
Salon booking
Try a shade, book a consultation with it attached. Track try-on to booking as the number that matters.
In the chair
On a tablet during the consultation, so client and stylist agree on a direction before mixing.
Colour retail
Box dye and toner ranges, where the swatch on the pack rarely matches the result.
Seasonal campaigns
A limited shade drop with its own try-on link for social, measured on bookings rather than clicks.
Photo by Averie Woodard on Unsplash. Maison Lane is a made-up salon for this concept. Shade codes follow the common level and tone numbering, not any brand’s chart.