Convert Color Code

Convert Color Code
hex, rgb, oklch, hsl, hsv, lab, lch, xyz, oklab, x11 colors

press down arrow to get a random color

HEX to RGB
OKLCH to HEX
All Converters

Convert Color Code is a free online tool for converting color values between different formats. It supports legacy standards like X11 names, Hex, RGB, HSL, and HSV, as well as modern color spaces including LAB, LCH, XYZ, OKLAB, and OKLCH. Powered by the @f12io/coco library, the tool focuses on mathematical precision: it ensures accurate round-trip conversions, meaning you can convert a color to another format and back without losing the original value.

Which color formats are supported?

By using Convert Color Code you can convert following color formats to each other:

  • HEX
  • HEXA
  • HSL
  • HSLA
  • HSV
  • HSVA
  • LAB
  • LCH
  • OKLAB
  • OKLCH
  • RGB
  • RGBA
  • XYZ

What is HEX color code?

A HEX color code, often referred to simply as "hex" is a hexadecimal representation of a color in web design and digital graphics. It consists of a '#' symbol followed by a combination of six characters, which can be numbers (0-9) and letters (A-F). These characters represent the intensity of red, green, and blue (RGB) components in the color, allowing for a vast range of colors to be specified with precision. HEX color codes are widely used in HTML and CSS to define colors for websites, providing a standardized method for designers and developers to ensure consistent and accurate color reproduction across different platforms and browsers.

What is HEXA color code?

A HEXA color code often written as "hex with alpha" is a hexadecimal color representation that includes an alpha component, similar to the rgba color format. In this format, in addition to the standard six characters that define the red, green, and blue (RGB) components, two additional characters represent the alpha channel, which controls the color's transparency or opacity. The alpha channel ranges from 00 (completely transparent) to FF (completely opaque), allowing for a wide range of transparency levels in a color. This format is commonly used in web design and graphic design to specify colors with transparency, providing control over the visual appearance of elements on a web page or in digital graphics.

What is HSL color code?

A HSL color code, which stands for Hue, Saturation, Lightness, is a color representation system used in digital design and computing. Unlike RGB, which is based on the red, green, and blue primary colors, HSL focuses on different aspects of color.

  • Hue: Represents the type of color, ranging from 0 to 360 degrees around the color wheel, where red is 0, green is 120, and blue is 240, for example.
  • Saturation: Measures the purity of the color, with 0% being grayscale and 100% being fully saturated.
  • Lightness: Specifies the brightness of the color, with 0% being black, 100% being white, and 50% being the original color.

HSL color codes provide a more intuitive and user-friendly way to work with colors, making it easier to adjust color attributes like hue, saturation, and lightness for various design purposes in web and graphic design.

What is HSLA color code?

HSLA color code, an extension of the HSL color model, adds an Alpha channel to the mix. HSLA stands for Hue, Saturation, Lightness, and Alpha.

  • Hue: Represents the type of color in degrees (0-360).
  • Saturation: Measures the purity of the color (0% to 100%).
  • Lightness: Specifies the brightness (0% for black, 100% for white).
  • Alpha: Controls transparency (0 for fully transparent, 1 for fully opaque).

HSLA color codes are particularly useful in web design and graphic design, allowing designers to define colors with varying transparency levels, enhancing control over the visual appearance and layering of elements in digital content.

What is HSV color code?

HSV color code, which stands for Hue, Saturation, Value, is a color representation system widely used in digital design and computing. Unlike HEX, which focuses on the primary colors of red, green, and blue, HSV considers different aspects of color:

  • Hue: Represents the type of color, ranging from 0 to 360 degrees around the color wheel.
  • Saturation: Measures the intensity or purity of the color, with 0% being grayscale and 100% being fully saturated.
  • Value: Specifies the brightness of the color, with 0% being black and 100% being the fully lit color.

HSV color codes offer an intuitive way to work with colors, making it easier for designers to adjust hue, saturation, and brightness to achieve their desired visual effects in various digital design applications, including web design and graphic design.

What is HSVA color code?

HSVA color code, an extension of the HSV color model, introduces an Alpha channel, resulting in Hue, Saturation, Value, and Alpha.

  • Hue: Defines the color type with values from 0 to 360 degrees.
  • Saturation: Indicates color intensity, ranging from 0% (grayscale) to 100% (fully saturated).
  • Value: Determines brightness, with 0% as black and 100% as the fully lit color.
  • Alpha: Controls transparency, varying from 0 (completely transparent) to 1 (fully opaque).

HSVA color codes are valuable in web design, graphic design, and digital art, enabling precise specification of colors with varying levels of transparency. This extension enhances control over the visual aspects and layering of elements in digital creations.

What is LAB color code?

The LAB color space (specifically CIELAB or CIE L*a*b*) is a color standard defined by the International Commission on Illumination (CIE) in 1976. It represents colors with three dimensions: 'L' for lightness (ranging from 0 for black to 100 for white), 'a' for the green-red color component, and 'b' for the blue-yellow color component. Unlike RGB or CMYK, LAB is designed to be device-independent, meaning it defines colors based on human perception rather than how they are produced by a specific screen or printer. This makes it an crucial intermediate space for converting between different color profiles.

What is LCH color code?

The LCH color code stands for Lightness, Chroma, and Hue. It is a cylindrical representation of the CIELAB (LAB) color space, designed to be more intuitive for human understanding. 'Lightness' represents the brightness of the color, 'Chroma' indicates the intensity or saturation, and 'Hue' specifies the color itself (e.g., red, blue, green) as an angle on the color wheel. LCH is particularly valued in design and colorimetry for its perceptual uniformity, meaning that changes in numerical values correspond relatively well to visual changes perceived by the human eye.

What is OKLAB color code?

The OKLAB color space is a perceptual color space designed by Björn Ottosson in 2020. It serves as a modern improvement over the traditional CIELAB space, aiming to be simple to use while correcting flaws in LAB's perceptual uniformity, especially in the handling of blue hues which can appear purple in LAB. OKLAB uses three coordinates: 'L' for perceived lightness, 'a' for green-red, and 'b' for blue-yellow. Its superior perceptual accuracy makes it excellent for tasks like color blending, gradient generation, and image processing.

What is OKLCH color code?

OKLCH is a color space that combines the perceptual uniformity of OKLAB with the intuitive cylindrical coordinates of LCH (Lightness, Chroma, Hue). It is increasingly becoming the preferred color space for modern web design and CSS because it allows for predictable color manipulation—such as creating harmonious palettes or adjusting lightness without shifting the perceived hue—better than HSL or standard LCH. It is natively supported in modern CSS Color Module Level 4, enabling more vibrant and accessible color schemes.

What is RGB color code?

RGB color code, short for Red, Green, Blue color code, is a numerical representation used in digital design and computing to define colors. It consists of three numerical values, each ranging from 0 to 255, representing the intensity of the red, green, and blue primary colors. By adjusting these values, a wide spectrum of colors can be created. RGB color codes are commonly employed in various applications, including web design, graphic design, and image editing, to precisely specify and reproduce colors for digital displays, images, and content.

What is RGBA color code?

RGBA color code, which stands for Red, Green, Blue, Alpha, is a color representation format used in digital design and computing. It is an extension of the RGB color model, where in addition to specifying the intensity of red, green, and blue (RGB) components, an alpha channel is included. The alpha channel controls the transparency or opacity of the color, with values ranging from 0 (fully transparent) to 1 (fully opaque). RGBA color codes are widely used in web design, graphic design, and image editing to define colors with varying levels of transparency, making it essential for creating visually appealing and layered digital content.

What is XYZ color code?

The XYZ color space, established by the CIE (International Commission on Illumination) in 1931, is the foundational model for all modern color management systems. It mathematically defines the relationship between the physical wavelengths of light and human color vision. In this model, 'Y' corresponds to luminance (brightness), while 'X' and 'Z' serve as virtual components to describe chromaticity. Because it encompasses all colors visible to the human eye, XYZ serves as the standard reference space for converting colors between different devices and color spaces.

What are X11 colors?

X11 colors refer to a standardized set of colors used in computing, particularly in the X Window System, a common graphical user interface for Unix-based operating systems. The X11 color palette includes 140 named colors, each with a specific hexadecimal code (HEX) representation. These named colors provide a consistent and widely recognized way to specify colors in software development, web design, and graphic design. Designers and developers often use X11 color names like 'red,' 'blue,' and 'green' along with their corresponding HEX values to ensure color consistency and compatibility across different systems and platforms.

X11 renk isim listesi

Convert Color Code

hex, rgb, oklch, hsl, hsv, lab, lch, xyz, oklab, x11 colors

Github
© 2025 Convert Color Code

HEX8

RGB

HSL

HSV

XYZ

LAB

LCH

OKLAB

OKLCH