{
const rgb = ['cyan', 'magenta', 'yellow', 'black']
const rgbValues = [[0, 255,255], [255, 0, 255], [255, 255, 0], [255, 255, 255]]
const rgbHex = rgb.map((color, idx) => {
const [r, g, b] = rgbValues[idx]
const rgbColor = {}
rgbColor[rgb[idx]] = rgb2hex(r, g, b)
return rgbColor
})
return rgbHex
}