Conversor de Cores — HEX, RGB, HSL, CMYK | CalcxApp

Converta entre HEX, RGB, HSL, CMYK e outros formatos de cor

Color Values

HEX

#0F172A

RGB

rgb(15, 23, 42)

HSL

hsl(222, 47%, 11%)

CMYK

cmyk(64%, 45%, 0%, 84%)

RGB Channel Distribution

Conversor de Cores — HEX, RGB, HSL, CMYK | CalcxApp

FormatValue
HEX#0F172A
RGBrgb(15, 23, 42)
HSLhsl(222, 47%, 11%)
CMYKcmyk(64%, 45%, 0%, 84%)
Red15 / 255
Green23 / 255
Blue42 / 255
Hue222°
Saturation47%
Lightness11%

About Color Formats

Understanding Digital Color Models

Digital colors are represented using mathematical models that define how colors are created and displayed on screens and in print. The four most common formats are HEX, RGB, HSL, and CMYK. Each has its own use case and advantages depending on whether you are working with web design, graphic design, or print media.

HEX Color Format

HEX is the most widely used color format in web development. It represents colors as a six-digit hexadecimal number preceded by a hash symbol. The first two digits represent red, the middle two represent green, and the last two represent blue. Each pair ranges from 00 to FF, giving 256 possible values per channel and over 16.7 million possible colors total. For example, pure red is #FF0000 and white is #FFFFFF.

RGB Color Model

The RGB model represents colors as combinations of red, green, and blue light. Each channel ranges from 0 to 255. This additive color model is used by screens and displays. When all three channels are at maximum, the result is white. When all are at zero, the result is black. RGB values like rgb(255, 128, 0) are commonly used in CSS and design software.

HSL Color Model

HSL stands for Hue, Saturation, and Lightness. Hue is measured in degrees from 0 to 360 around the color wheel, where 0 is red, 120 is green, and 240 is blue. Saturation is a percentage from 0 to 100 representing color intensity. Lightness is a percentage from 0 which is black to 100 which is white, with 50 being the pure color. HSL is intuitive for designers because adjusting lightness or saturation is more natural than adjusting RGB channels independently.

CMYK for Print

CMYK is a subtractive color model used in printing. It stands for Cyan, Magenta, Yellow, and Key which is black. Each value is a percentage from 0 to 100. Unlike RGB which adds light, CMYK subtracts light from a white background. Converting between RGB and CMYK is not always exact because the RGB color space is larger than what can be reproduced in print, a concept known as the gamut.

Practical Example

Converting a Brand Color

Suppose your brand color is #6366F1, a shade of indigo. In RGB this is rgb(99, 102, 241). In HSL it is hsl(239, 84%, 67%). In CMYK it is approximately cmyk(59%, 58%, 0%, 5%). Having all formats available ensures you can use the color consistently across web, design tools, and print materials.

Perguntas Frequentes

Qual a diferença entre RGB e HEX?

RGB (Red, Green, Blue) usa três valores de 0-255 para descrever uma cor. HEX é a representação hexadecimal do mesmo RGB, frequentemente usada em CSS e HTML.

O que é CMYK?

CMYK (Cyan, Magenta, Yellow, Key/Black) é o espaço de cor usado em impressão profissional. Diferente de RGB, que é para telas.

Como escolher a cor para web?

Para web, use HEX ou RGB. Cores HEX são mais comuns em CSS. Certifique-se de que o contraste atende aos padrões de acessibilidade WCAG.

A calculadora funciona para design de impressão?

Sim. A calculadora converte entre RGB e CMYK para uso em impressão. Para resultados profissionais, use perfis ICC específicos da impressora.

O que é espaço de cor HSL?

HSL (Hue, Saturation, Lightness) é um espaço de cor mais intuitivo que RGB. Hue define a cor base, saturação a intensidade, e lightness a luminosidade.

Disclaimer: As conversões entre espaços de cor são aproximadas. Para impressão profissional, consulte perfis ICC de cores.

References

  1. Wikipedia. "RGB color model." en.wikipedia.org
  2. Wikipedia. "HSL and HSV." en.wikipedia.org

Comentários