Brian Dunning's FileMaker Custom Functions

HSLtoRGB ( hueDegrees ; satPercentage ; liPercentage )

Converts color from HSL values to RGB percentages.

  Average rating: 4.4 (28 votes) Log in to vote

Joe Rovang   Joe Rovang - Show more from this author

Share on Facebook Share on Twitter

  Sample input:
HSLtoRGB ( 0; 1; .5 ) // red
  Sample output:


  Function definition: (Copy & paste into FileMaker's Edit Custom Function window)

This function converts the specified color from hue, saturation, and lightness (HSL) to RGB percentages. (Note that HSL is not the same as HSB/HSV!)

While hue is expressed in degrees, all other values are expressed in decimals between 0 and 1, inclusively. To use the output RGB values in a TextColor function, you'd first need to multiply them by 255 and round to whole numbers.



Log in to post comments.


Note: these functions are not guaranteed or supported by Please contact the individual developer with any questions or problems.

Support this website.

This library has been a free commmunity resource for FileMaker users and developers for 15 years. It receives no funding and has no advertisements. If it has helped you out, I'd really appreciate it if you could contribute whatever you think it's worth: