Color formats

5 available color formats

#hexa

Data

data = {
  color: "#FF0000"
};

hexa

Data

data = {
  color: "FF0000"
};

color

Data

data = {
  color: "red"
};

rgb

Data

data = {
  color: {
    r: 255, // Between 0 and 255
    g: 0, // Between 0 and 255
    b: 0 // Between 0 and 255
  }
};

hsl

Data

data = {
  color: {
    h: 300, // Between 0 and 360
    s: 50, // Between 0 and 100 or 0 and 1
    l: 50 // Between 0 and 100 or 0 and 1
  }
};

Last updated