Loading…

How to use RGB Percentage Converter

Enter a hex color, and the tool converts it to percentage rgb(), 0–1 float, and 8-bit integer forms.

Frequently asked questions

What is percentage rgb()?

CSS allows rgb() channels as percentages, e.g. rgb(100%, 50%, 0%). Each 0–255 value is divided by 255 and expressed as a percent.

What are the 0–1 float values for?

Graphics and shader code (WebGL, SwiftUI, design tokens) often expect channels normalized to a 0–1 range instead of 0–255.

Is the conversion lossless?

The integer form is exact; the percentage and float forms are rounded for readability but map back to the same 8-bit color.

More Color Tools

Color Picker
Pick colors visually and get HEX, RGB, HSL, HSV, CMYK values
Color Format Converter
Convert between HEX, RGB, HSL, HSV, CMYK, LAB and CSS names
Color Contrast Checker
Check WCAG AA/AAA contrast ratios for text and backgrounds
WCAG Color Compliance
Test all WCAG 2.1 text size requirements with pass/fail badges
Color Mixer
Blend two colors with a ratio slider and preview the mix
Tints & Shades Generator
Generate a complete range of tints and shades from any color
Gradient Color Steps
Generate N evenly-spaced colors between two endpoints
Color Harmonies
Generate complementary, triadic and analogous palettes
Random Palette Generator
Generate beautiful random color palettes with one click
Color Opacity / RGBA
Add alpha transparency to any color and get rgba() values
Image Color Extractor
Upload an image to extract its dominant color palette
Color Blindness Simulator
Simulate how your palette looks with different color blindness

← View all Color ToolsBrowse all 1,100+ tools →