Methods, systems, and devices for implementing an adaptive color transform (ACT) during image /
video encoding and decoding, including: determining, for a conversion between a video including a block and a
bitstream of the video, that a size of the block is greater than a maximum allowed size for an ACT mode, and performing, based on the determining, the conversion. In response to the size of the block being greater than the maximum allowed size for the ACT mode, the block is partitioned into multiple sub-blocks. Each of the multiple sub-blocks share a same prediction mode, and the ACT mode is enabled at a sub-
block level.