The hardware and bandwidth for this mirror is donated by dogado GmbH, the Webhosting and Full Service-Cloud Provider. Check out our Wordpress Tutorial.
If you wish to report a bug, or if you are interested in having us mirror your free-software or open-source project, please feel free to contact us at mirror[@]dogado.de.

spectra2rgb: Convert Spectral Signatures to sRGB and CIELAB Colour Coordinates

Converts hyperspectral reflectance signatures to sRGB hex codes and CIE L*a*b* coordinates using the CIE 1931 2-degree standard observer and the D65 standard illuminant. CIELAB coordinates are calculated directly from CIE XYZ values; sRGB output is generated independently. Includes bundled reference data so the package is self-contained. Handles missing and non-finite reflectance values via a configurable policy.

Version: 0.1.2
Depends: R (≥ 4.0)
Imports: stats, grDevices, utils
Suggests: testthat (≥ 3.0.0), knitr, rmarkdown
Published: 2026-11-27
DOI: 10.32614/CRAN.package.spectra2rgb
Author: Jhohan Elguera [aut, cre]
Maintainer: Jhohan Elguera <jelguerat at gmail.com>
License: GPL (≥ 3)
NeedsCompilation: no
Materials: README, NEWS
CRAN checks: spectra2rgb results

Documentation:

Reference manual: spectra2rgb.html , spectra2rgb.pdf
Vignettes: Introduction to spectra2rgb (source, R code)

Downloads:

Package source: spectra2rgb_0.1.2.tar.gz
Windows binaries: r-devel: spectra2rgb_0.1.1.zip, r-release: spectra2rgb_0.1.1.zip, r-oldrel: spectra2rgb_0.1.2.zip
macOS binaries: r-release (arm64): spectra2rgb_0.1.2.tgz, r-oldrel (arm64): spectra2rgb_0.1.2.tgz, r-release (x86_64): spectra2rgb_0.1.2.tgz, r-oldrel (x86_64): spectra2rgb_0.1.2.tgz
Old sources: spectra2rgb archive

Linking:

Please use the canonical form https://CRAN.R-project.org/package=spectra2rgb to link to this page.

These binaries (installable software) and packages are in development.
They may not be fully stable and should be used with caution. We make no claims about them.
Health stats visible at Monitor.