RGB and CMYK
This conversion is purely mathematical. Support for color spaces with regards to CMYK is a long-term goal.
RGB to CMYK
KCMY=1−max(R,G,B)={01−K1−R−K if K=1 otherwise ={01−K1−G−K if K=1 otherwise ={01−K1−B−K if K=1 otherwise CMYK to RGB
RGB=(1−C)⋅(1−K)=(1−M)⋅(1−K)=(1−Y)⋅(1−K)