A method comprising: receiving a video signal associated with a first color space, wherein the first color space comprises a color sample; partitioning the first color space into a plurality of partitions; determining a partition of the first color space that includes the color sample, wherein the determined partition comprises a plurality of vertices; and converting the color sample from the first color space into a second color space using a color space conversion model; characterised in that in case the color space conversion model uses triangular interpolation, converting the color sample comprises: determining a projection of the color sample (P', P") onto a plane formed by a first axis and a second axis, each axis corresponding to a color component, determining a first distance between the projection and the first axis, determining a second distance between the projection and the second axis, determining three vertices in the plane forming a triangle enclosing the projection and obtaining, for each of the three vertices, a value in the second color space, and applying a triangular interpolation of the obtained three values in the second color space based on the first and second distances; and in that in case the color space conversion model uses linear interpolation, converting the color sample comprises: determining a projection of the color sample (P', P") onto an axis corresponding to a color component, determining two vertices on the axis forming a line section enclosing the projection and obtaining, for each of the two vertices, a value in the second color space, determining a distance between the projection and one of the two vertices, and applying a linear interpolation of the obtained two values in the second color space based on the distance. receiving a video signal associated with a first color space, wherein the first color space comprises a color sample; partitioning the first color space into a plurality of partitions; determining a partition of the first color space that includes the color sample, wherein the determined partition comprises a plurality of vertices; and converting the color sample from the first color space into a second color space using a color space conversion model; in case the color space conversion model uses triangular interpolation, converting the color sample comprises: determining a projection of the color sample (P', P") onto a plane formed by a first axis and a second axis, each axis corresponding to a color component, determining a first distance between the projection and the first axis, determining a second distance between the projection and the second axis, determining three vertices in the plane forming a triangle enclosing the projection and obtaining, for each of the three vertices, a value in the second color space, and applying a triangular interpolation of the obtained three values in the second color space based on the first and second distances; and in that in case the color space conversion model uses linear interpolation, converting the color sample comprises: determining a projection of the color sample (P', P") onto an axis corresponding to a color component, determining two vertices on the axis forming a line section enclosing the projection and obtaining, for each of the two vertices, a value in the second color space, determining a distance between the projection and one of the two vertices, and applying a linear interpolation of the obtained two values in the second color space based on the distance. determining a projection of the color sample (P', P") onto a plane formed by a first axis and a second axis, each axis corresponding to a color component, determining a first distance between the projection and the first axis, determining a second distance between the projection and the second axis, determining three vertices in the plane forming a triangle enclosing the projection and obtaining, for each of the three vertices, a value in the second color space, and applying a triangular interpolation of the obtained three values in the second color space based on the first and second distances; and in that in case the color space conversion model uses linear interpolation, converting the color sample comprises: determining a projection of the color sample (P', P") onto an axis corresponding to a color component, determining two vertices on the axis forming a line section enclosing the projection and obtaining, for each of the two vertices, a value in the second color space, determining a distance between the projection and one of the two vertices, and applying a linear interpolation of the obtained two values in the second color space based on the distance.