Learn R Programming

colourspace (version 0.0.1)

hex_to_oklch: Convert HEX to OKLCH

Description

Convert HEX to OKLCH

Usage

hex_to_oklch(hex)

Value

Numeric vector (length 3) or matrix with columns l, c, h.

Arguments

hex

Character vector of hex colour strings.

Examples

Run this code
hex_to_oklch("#ff0000")

Run the code above in your browser using DataLab