There may be a late answer, but we did something similar to your requirement, where we had custom colors based on users stored in the database.
Our solution was to add custom code to the lossless source, which is available here. I believe https://github.com/dotless/dotless
So, during the analysis, he simply replaced the parts that we wanted to replace. The only drawback of this approach is getting updated builds of the new dotll dll, which we need to regenerate our source every time.
EDIT
Here is an example code snippet:
dotless.Core.Utils.HslColor hslcolor = dotless.Core.Utils.HslColor.FromRgbColor( new dotless.Core.Parser.Tree.Color( "187AAB" );
hslcolor.Lightness = 0.93;
var hexString = '#' + ( hslcolor.ToRgbColor().RGB.Select( i => ( ( int )i ).ToString( "X2" ) ).Aggregate( ( a, b ) => a + b ) ).ToLowerInvariant();
var resultColor = hexString;
source
share