Learn R Programming

colourspace

*Technically speaking, we're dealing with color systems, not spaces. But since this is a hex-driven project, I couldn't pass up such a great name.

Copy Link

Version

Install

install.packages('colourspace')

Version

0.0.1

License

MIT + file LICENSE

Maintainer

Yann Cohen

Last Published

March 23rd, 2026

Functions in colourspace (0.0.1)

hex_to_hsl

Convert HEX to HSL
hex_to_rgb

Convert HEX to RGB
color_map

Precomputed colour map for nearest-name lookup
hex_to_oklch

Convert HEX to OKLCH
hex_to_oklab

Convert HEX to OKLAB
color_names

CSS color names to HEX mapping
hex_to_name

Convert HEX to colour name
oklab_to_hex

Convert OKLAB to HEX
name_to_hex

Convert colour name to HEX
to_css

Format colours as modern CSS color functions
oklch_to_hex

Convert OKLCH to HEX
hsl_to_hex

Convert HSL to HEX
rgb_to_hex

Convert RGB to HEX
convert_colourspace

Convert between colour spaces
from_css

Parse CSS color strings