Tools

Color converter

HEX · RGB · HSL · LCH

Convert colors between HEX, RGB, HSL, HSB, CMYK, LCH, and CSS names in real time

Live preview

Main preview

Compare the current color with the last one used and use the browser color picker as a quick entry point.

Alpha100%
Current#FF6B6BFF
Previous#FF6B6BFF
Active color#FF6B6B

Accessibility

Contrast and readability

Check WCAG 2.1 contrast for black and white text and preview color-vision simulations.

Dark text on the color

Black text

7.57
Normal AA Normal AAA Large AA Large AAA
Light text on the color

White text

2.78
Normal AA Normal AAA Large AA Large AAA

Color-vision simulation

Approximate simulation based on standard RGB transformation matrices.

Deuteranopia#C8D36B
Protanopia#BFBE6B
Tritanopia#F86B6B
Achromatopsia#979797

Input and output

Synchronized fields

Type or paste a color in any supported format and every other field will update instantly.

There is no exact CSS name for this color.

History

Recent colors

The latest 10 samples stay in memory for the current session.

About this tool

Colors in digital systems can be represented in multiple color spaces. The RGB model decomposes color into its red, green, and blue light components, each with values from 0 to 255: white is (255,255,255)(255, 255, 255) and black (0,0,0)(0, 0, 0). The hexadecimal format is simply the Base16 representation of the three RGB components concatenated: #FF5733 equals R=255,G=87,B=51R=255, G=87, B=51.

The HSL (Hue, Saturation, Lightness) model is more intuitive for designers because it separates the hue H∈[0°,360°)H \in [0°, 360°) (the color itself: red, green, blue...), saturation S∈[0%,100%]S \in [0\%, 100\%] (the vividness of the color), and lightness L∈[0%,100%]L \in [0\%, 100\%] (from black to white). HSV (Hue, Saturation, Value) is similar but uses value instead of lightness. Converting between these models involves non-trivial trigonometric and linear transformations that this tool performs automatically.

Enter a color in any format and instantly get the equivalents in HEX, RGB, HSL, and HSV with real-time preview. Useful as a quick reference when working on design or interface development projects.