Converting Between Colour Formats
Enter a colour in any format - HEX, RGB, HSL or HSV - and get all the others instantly, ready to paste into CSS. Each format encodes the same colour differently: HEX and RGB describe channel values, while HSL and HSV describe hue, saturation and lightness, which makes them far easier to adjust by hand. How the formats relate, and when to prefer each, is covered in colour formats: HEX, RGB and HSL.
If you are building a full colour scale rather than converting a single value, the Colour Palette Generator produces a complete shade ramp from one base colour using OKLCH.