Color Converter

Convert any color between HEX, RGB, HSL, HSV, and CMYK instantly. Includes a color picker, named CSS colors, and contrast checker.

Enter a Color

Color Picker
Click to pick any color visually

Named CSS Colors

Understanding Color Models

Colours on screens and in print are represented using mathematical models — each with different strengths. Understanding these models helps you choose the right format for web development, graphic design, print production, and accessibility compliance.

Color Models Explained

HEX (#RRGGBB)

The most common colour format in web development. HEX (hexadecimal) uses six characters — two each for Red, Green, and Blue — with values from 00 to FF (0–255 in decimal). For example, #FF0000 is pure red (255 red, 0 green, 0 blue), and #808080 is medium grey. The shorthand #FFF expands to #FFFFFF (white). HEX is compact, widely supported in CSS, and easy to copy-paste between tools. It does not support transparency — use 8-digit HEX (#RRGGBBAA) or RGBA for that.

RGB (Red, Green, Blue)

RGB is an additive colour model — mixing red, green, and blue light at full intensity produces white. Each channel ranges from 0 to 255. This model directly maps to how screens work: every pixel on your monitor is a cluster of red, green, and blue sub-pixels. CSS syntax: rgb(255, 0, 0) for red, or rgba(255, 0, 0, 0.5) for 50% transparent red. RGB is the native format for digital displays, image processing, and canvas rendering.

HSL (Hue, Saturation, Lightness)

HSL represents colours the way humans naturally think about them. Hue is the colour angle on the colour wheel (0° = red, 120° = green, 240° = blue). Saturation (0–100%) controls how vivid the colour is — 0% is grey, 100% is fully saturated. Lightness (0–100%) controls brightness — 0% is black, 50% is the "pure" colour, 100% is white. HSL is especially useful in CSS for creating colour variations: to make a darker shade, just reduce the lightness. To mute a colour, reduce the saturation.

HSV / HSB (Hue, Saturation, Value/Brightness)

HSV (also called HSB) is the colour model used by most design tools including Photoshop, Figma, and Sketch. It is similar to HSL but uses "Value" (brightness) instead of "Lightness." In HSV, 100% value means the colour is at maximum brightness (but not necessarily white — that depends on saturation). Designers prefer HSV because it aligns more closely with how we perceive colour mixing in paint: adding white (reducing saturation) and adding black (reducing value) are separate, intuitive operations.

CMYK (Cyan, Magenta, Yellow, Key/Black)

CMYK is a subtractive colour model used for print production. While screens add light (RGB), printers subtract light by layering inks. Cyan, magenta, and yellow inks theoretically combine to produce black, but in practice the result is a muddy brown — so a separate "Key" (black) ink is added. All values range from 0% to 100%. When designing for print (business cards, brochures, packaging), always work in CMYK to ensure colour accuracy. Note that the CMYK gamut is smaller than RGB — some vibrant screen colours cannot be reproduced in print.

Web Accessibility: Colour Contrast

The Web Content Accessibility Guidelines (WCAG) define minimum contrast ratios to ensure text is readable by people with visual impairments, including colour blindness:

LevelNormal TextLarge Text (18px+ bold)UI Components
WCAG AA (minimum)4.5 : 13 : 13 : 1
WCAG AAA (enhanced)7 : 14.5 : 1Not defined

For example, dark grey text (#333333) on a white background has a contrast ratio of 12.6:1, passing both AA and AAA. Light grey text (#AAAAAA) on white has only 2.3:1, failing both levels.

Colour Theory for Designers

Popular Colour Palettes Reference

Brand / StandardPrimary ColourHEX
Tailwind IndigoIndigo-600#4F46E5
Material BlueBlue 500#2196F3
Bootstrap PrimaryBlue#0D6EFD
CSS NamedCoral#FF7F50
CSS NamedTeal#008080

Frequently Asked Questions — Color Converter

Written and reviewed by the FreeBytes Editorial Team · Last updated: June 2026