Java tutorial
//package com.java2s; public class Main { public static String getThemeAlphaColor(int alpha) { StringBuilder stringBuilder = new StringBuilder(); stringBuilder.append("#"); stringBuilder.append(String.format("%02x", alpha * 255 / 100)); stringBuilder.append("12B7F5"); return stringBuilder.toString(); } }