Skip to content
YouNeed Tools
Free VPN

Colour Converter

Type a colour in any format or pick one, and copy it as HEX, RGB, HSL, HSV, CMYK or OKLCH.

#ff5733, rgb(255 87 51), hsl(11 100% 60%), hsv(11, 80%, 100%), cmyk(0, 66, 80, 0) or oklch(68% 0.21 34)

HEX#FF5733
RGBrgb(255 87 51)
HSLhsl(11 100% 60%)
HSV / HSBhsv(11, 80%, 100%)
CMYKcmyk(0%, 66%, 80%, 0%)
OKLCHoklch(68.04% 0.21 33.69)

Converted on your device.

Worked example

Your brand blue is #1E90FF. In RGB that is rgb(30 144 255); for CSS with lightness control use hsl(210 100% 56%); a designer working in HSB sees hsv(210, 88%, 100%); a rough print value is cmyk(88%, 44%, 0%, 0%); and in the perceptual space it is oklch(65.2% 0.1901 253.21).

Common colours in every format

ColourHEXRGBHSLCMYK
Red#FF0000rgb(255 0 0)hsl(0 100% 50%)cmyk(0%, 100%, 100%, 0%)
Orange#FFA500rgb(255 165 0)hsl(39 100% 50%)cmyk(0%, 35%, 100%, 0%)
Gold#FFD700rgb(255 215 0)hsl(51 100% 50%)cmyk(0%, 16%, 100%, 0%)
Green#008000rgb(0 128 0)hsl(120 100% 25%)cmyk(100%, 0%, 100%, 50%)
Teal#008080rgb(0 128 128)hsl(180 100% 25%)cmyk(100%, 0%, 0%, 50%)
Navy#000080rgb(0 0 128)hsl(240 100% 25%)cmyk(100%, 100%, 0%, 50%)
Purple#800080rgb(128 0 128)hsl(300 100% 25%)cmyk(0%, 100%, 0%, 50%)
Gray#808080rgb(128 128 128)hsl(0 0% 50%)cmyk(0%, 0%, 0%, 50%)

Which format to use where

  • HEX: the shortest way to write a color in HTML, CSS and design hand-offs.
  • RGB: how screens mix light; used in code, video and many apps.
  • HSL: easiest for tweaking in CSS: change the lightness for hover states or tints without changing the hue.
  • HSV/HSB: the color pickers in Photoshop, Figma and many paint apps.
  • CMYK: print (cyan, magenta, yellow, black inks); get a proof for critical colors.
  • OKLCH: modern CSS for palettes and gradients that look even, and for wide-gamut screens.

To check that text in your color is readable on its background, use the contrast checker; to build a palette around it, use the colour palette generator.

Related tools

Sources

Checked on November 26, 2026:

Frequently asked questions

How do I convert HEX to RGB?
Split the six digits into three pairs and read each as a hexadecimal number from 0 to 255. #1E90FF is 1E = 30, 90 = 144, FF = 255, so rgb(30, 144, 255).
What is the difference between HSL and HSV?
Both use hue (the color angle, 0–360°) and saturation, but HSL’s third value is lightness, where 50% is the pure color and 100% is white, while HSV’s (also called HSB, brightness) is value, where 100% is the pure color. Design apps like Photoshop and Figma show HSB; CSS uses HSL.
Is the CMYK value right for printing?
It is the simple mathematical conversion, good for a starting point. Real print colors depend on the press, paper and ICC profile, so for brand colors ask your printer for a proof or use a Pantone guide.
What is OKLCH?
A newer color space (lightness, chroma, hue) built so equal steps look equally different to the eye. CSS supports oklch() in all current browsers, and it is handy for making even palettes and accessible contrast.
Does it support transparency?
Yes. Type an 8-digit HEX (#RRGGBBAA), rgba() or a / alpha value, and the outputs keep the alpha. HSV and CMYK have no alpha channel.
Why do some values change slightly when converted back?
RGB holds whole numbers from 0 to 255, so a color typed in HSL or OKLCH is rounded to the nearest RGB value; converting back can differ by a fraction of a percent.

Last updated: 2026-11-26