Thông qua các thuộc tính XML:
<android.support.design.widget.TabLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        app:tabMode="fixed"
        app:tabGravity="fill"
        app:tabTextColor="@color/your_unselected_text_color"
        app:tabSelectedTextColor="@color/your_selected_text_color"/>
Ngoài ra, có các thuộc tính như tabIndicatorColor hoặc tabIndicatorHeight để tạo kiểu thêm.
Trong mã:
tabLayout.setTabTextColors(
    getResources().getColor(R.color.your_unselected_text_color),
    getResources().getColor(R.color.your_selected_text_color)
);
Vì cách cũ này không được dùng nữa kể từ API 23, nên giải pháp thay thế là:
tabLayout.setTabTextColors(
    ContextCompat.getColor(context, R.color.your_unselected_text_color),
    ContextCompat.getColor(context, R.color.your_selected_text_color)
);