This MTT assays primarily measure mitochondrial function. However, one has to know that mitochondria works only in live cells. This is why MTT can say cell viability too indirectly. More live cells mean more working mitochondria and you will get more intense darker purple color. Hope this answer your query.