Skip to content

colourspace

0.1.1

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

0packages depend
2.6Kdownloads / year
94.1%test coverage
13/13checks pass

Overview

About
Maintained by Yann CohenFirst published 2026-03-042 releasesCRAN page ↗GitHub ↗

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/.

Install

Health

CRAN checks
13OK
Slowest check: 1.1 min · r-devel-windows-x86_64
Code health
Yes
Tests · ratio 1.09
94.1%
Coverage · measured lines
100%
Documentation · exports
2
Dependencies · direct
Check history
  • OK2026-08-05
    13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • NOTE2026-08-01
    12 OK · 1 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • OK2026-03-10
    13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE

Documentation

Documentation
READMEYes · 212 wordsVignettesNopkgdown siteNoNEWSYes · 100% structuredCode of conductNoContributing guideNo
Examples that run
100%
Documented parameters
100%
Return-value docs
100%
References docs
0%

Downloads

2.6K
CRAN downloads in the past year
Rank #9,136 · ~7/day · ~214/mo
Daily download trend is not available in this view yet.
16730 days
1K90 days
2.6K1 year
Compare downloads with other packages →
Also on72 r2u17 autocran

Repository

Repository
0Stars
0Forks
0Open issues
0Open PRs
2Releases
49Commits
2Contributors
49 commits · Last activity 2026-03-30

Releases over time

2026-02-14 · 12026-07-07 · 2

Repository practices

Upstream repositoryBeta

5 development-tooling and community-health practices detected across 4 families in the upstream repository

Checks run against github.com/iamyannc/colourspace on 2026-08-16.

Continuous integration (1)
GitHub Actions
Reproducibility and dev environment (1)
data-raw/
CRAN release process (2)
cran-comments.mdCRAN-SUBMISSION
Git structural (1)
.gitattributes
How this is detected·Detection ruleset v1 (2026-07-18)

Dependencies

Declared dependencies
3 external dependencies (excludes base and recommended)
Depends (1)
R >= 3.5
Imports (2)
LinkingTo (0)
none
Suggests (1)
Enhances (0)
none
Reverse dependencies
0direct
0indirect

Nothing depends on this yet.

Code & Tests

Datasets

People & History

People (1)
Maintainer (1)
Author, Maintainer
Authors (1)
Author, Maintainer
Package Timeline

2 releases. Pick two to compare their code metrics. R releases are shown for context.

  • R
    R 4.6.0 released · 2026-04-24
  • 0.1.1Latest
    2026-03-24 · current release · diff ↗
  • 0.0.1
    2026-03-10
  • R
    R 4.5.0 released · 2025-04-11

Package metadata

First published
2026-03-04
Total releases
2 / 1 yrs
License
MIT + file LICENSE OSI
Minimum R
≥ 3.5
Bundled data
2.2 MB / 2 files
Download size
2.3 MB
Installed size
not tracked yet
With dependencies
not tracked yet

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("colourspace")
Cohen, Y. (2026). colourspace: Convert from One Colour Space to Another, Print a Ready-to-Paste Modern 'CSS' Syntax (Version 0.1.1) [Computer software]. https://doi.org/10.32614/CRAN.package.colourspace

This is what citation() produces when a package has no citation file of its own. If it prints something else, use that.

Cite the R Observatory

For a number measured here: a download total, a coverage figure, an archival date.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for colourspace version 0.1.1 [Data set]. HJJB, LLC. Data release v2026-08-18. https://doi.org/10.5281/zenodo.21843040

From data release v2026-08-18, which the citation names so these numbers can be found later. More on citing and the projects behind them.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy