colourspace: Convert from One Colour Space to Another, Print a Ready-to-Paste Modern 'CSS' Syntax

Provides a comprehensive 'API' for colour conversion between popular colour spaces ('RGB', 'HSL', 'OKLab', 'OKLch', 'hex', and named colours) along with clean, modern 'CSS' Color Level 4 syntax output. Integrates seamlessly into 'Shiny' and 'Quarto' workflows. Includes nearest colour name lookup powered by a curated database of over 30,000 colour names. 'OKLab'/'OKLCh' colour spaces are described in Ottosson (2020) <https://bottosson.github.io/posts/oklab/>. 'CSS' Color Level 4 syntax follows the W3C specification <https://www.w3.org/TR/css-color-4/>.

Version: 0.0.1
Depends: R (≥ 3.5)
Imports: farver, RANN
Suggests: testthat (≥ 3.0.0)
Published: 2026-03-04
DOI: 10.32614/CRAN.package.colourspace (may not be active yet)
Author: Yann Cohen [aut, cre]
Maintainer: Yann Cohen <yannco5 at gmail.com>
License: MIT + file LICENSE
NeedsCompilation: no
Materials: README
CRAN checks: colourspace results

Documentation:

Reference manual: colourspace.html , colourspace.pdf

Downloads:

Package source: colourspace_0.0.1.tar.gz
Windows binaries: r-devel: not available, r-release: not available, r-oldrel: not available
macOS binaries: r-release (arm64): colourspace_0.0.1.tgz, r-oldrel (arm64): colourspace_0.0.1.tgz, r-release (x86_64): colourspace_0.0.1.tgz, r-oldrel (x86_64): colourspace_0.0.1.tgz

Linking:

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