Convert wavelength of light in representative color

Version 1.1 (1.28 KB) by Urs Hofmann
This tool converts a wavelength provided in nm into a representative color.
581 Downloads
Updated 9 Jul 2020

Converts a wavelength provided in nm into a color in either rgb or hsv space. For illustration purposes only, to get true colors corresponding to a certain wavelength ones needs to look deeper.

Principle was stolen from
https://academo.org/demos/wavelength/

Cite As

Urs Hofmann (2026). Convert wavelength of light in representative color (https://github.com/razanskylab/wavelength2rgb/releases/tag/1.1), GitHub. Retrieved .

MATLAB Release Compatibility
Created with R2020a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Version Published Release Notes
1.1

See release notes for this release on GitHub: https://github.com/razanskylab/wavelength2rgb/releases/tag/1.1

1.0.0

To view or report issues in this GitHub add-on, visit the GitHub Repository.
To view or report issues in this GitHub add-on, visit the GitHub Repository.