i
×

RGB - HEX Color Code Converter

This interactive online color conversion tool allows you to calculate the transition between RGB and HEX values. Input one of the codes to convert it to the other one instantly. A successful conversion changes the background color of the page and generates CSS code snippets for quick use.

HEX Input – the first field accepts values with or without the hash sign. It works for both 3 and 6 character long codes. The calculator can handle some typos too, for example when the second digit of a component is an invalid character, not in the hexadecimal range (0-F).

RGB Input – it works both for upper and lowercase rgb or rgba codes, but you can ignore the starting rgb mark and the brackets. Make sure you add three numbers in the 0-255 range separated by commas.

Pick a color: black, blue, brown, gray, green, orange, pink, purple, red, white, yellow | SiteMap

We use cookies on this website to collect visitor statistics. By using this website you agree to our plicy.
© RGB Color Code rgb color code

Namemuted teal
HSLhsl(210, 20%, 66.7%)
Hue-Saturation-Lightness: Common in CSS and design tools.
HWBhwb(210, 60%, 26.7%)
Hue with White and Black CSS color 4.
LABLab(68.83, -2.29, -10.71)
Based on human perception, using: L (lightness), a (green-to-magenta), and b (blue-to-yellow).
LCHLCH(68.83, 10.95, 258)
Hue-Chroma-Luminance designed to accord with human perception of color.
OKLABoklab(0.7303, -0.0116, -0.029)
Modern perceptual space with improved uniformity; supported in CSS.
OKLCHoklch(0.7303, 0.0312, 248.3)
Polar OKLab with better gradients and perceptual adjustments.
HSV/HSBhsv(210, 18.2%, 73.3%)
HSV stands for hue, saturation, and value, and is also often called HSB (B for brightness).
CMYKcmyk(18.2%, 9.1%, 0%, 26.7%)
Cyan, magenta, yellow and key (black) for printing on white paper.
XYZ (D65)X 36.48, Y 39.11, Z 52.64
CIE 1931 reference space is the basis for most conversions.
Display‑P3color(display-p3 0.6125 0.6646 0.7267)
Wide-gamut display space (Apple/modern screens).
Rec.2020color(rec2020 0.5894 0.6263 0.695)
UHDTV/HDR wide gamut, used in video.

CSS Use

Text color
Background color
Box border
Text shadow
Box shadow