hsv2hsl

converts colours from the HSV to the HSL colour space
329 Downloads
Updated 22 Mar 2013

View License

A simple function that converts colours from the HSV to the HSL colour space.
The HSV values must be in the range from 0 to 1. The input values can be an array with 3 elements or a matrix where each column corresponds to respectively the Hue, Saturation and Value.
The HSL values are displayed in the range from 0 to 1.

Cite As

Sander Verhaeven (2025). hsv2hsl (https://se.mathworks.com/matlabcentral/fileexchange/40910-hsv2hsl), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2011a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Convert Image Type in Help Center and MATLAB Answers

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.0.0.0