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.1
Depends: R (≥ 4.0)
Imports: stats, grDevices, utils
Suggests: testthat (≥ 3.0.0), knitr, rmarkdown
Published: 2026-11-16
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.1.tar.gz
Windows binaries: r-devel: spectra2rgb_0.1.0.zip, r-release: spectra2rgb_0.1.0.zip, r-oldrel: spectra2rgb_0.1.1.zip
macOS binaries: r-release (arm64): spectra2rgb_0.1.1.tgz, r-oldrel (arm64): spectra2rgb_0.1.1.tgz, r-release (x86_64): spectra2rgb_0.1.1.tgz, r-oldrel (x86_64): spectra2rgb_0.1.1.tgz
Old sources: spectra2rgb archive

Linking:

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