ਵਿਸ਼ਵ ਪੱਧਰਮੁਫ਼ਤ ਵਰਤੋਂ

HEX ਤੋਂ RGB ਅਤੇ HSL ਕਨਵਰਟਰ

ਤਿੰਨ ਜਾਂ ਛੇ ਅੰਕਾਂ ਵਾਲੇ ਹੈਕਸਾਡੈਸੀਮਲ ਰੰਗ ਨੂੰ RGB ਅਤੇ HSL ਵਿੱਚ ਬਦਲੋ।

ਤੁਹਾਡਾ ਡਾਟਾ ਇਸੇ ਟੈਬ ਵਿੱਚ ਰਹਿੰਦਾ ਹੈ। ਸਾਨੂੰ ਤੁਹਾਡੀਆਂ ਫਾਈਲਾਂ, ਪੇਸਟ ਕੀਤਾ ਟੈਕਸਟ ਜਾਂ ਗਣਨਾ ਦੇ ਮੁੱਲ ਨਹੀਂ ਮਿਲਦੇ।

ਇਨਪੁੱਟ

ਸੁਝਾਅ: ਚਲਾਉਣ ਲਈ Ctrl + Enter ਦਬਾਓ

ਤੁਹਾਡਾ ਨਤੀਜਾ

ਤੁਹਾਡਾ ਨਤੀਜਾ ਇੱਥੇ ਦਿਸੇਗਾ।

ਹੇਠਾਂ ਦਿੱਤੀ ਵਿਸਤ੍ਰਿਤ ਮਦਦ ਫਿਲਹਾਲ ਸਿਰਫ਼ ਅੰਗਰੇਜ਼ੀ ਵਿੱਚ ਉਪਲਬਧ ਹੈ।

ਇਸ ਟੂਲ ਬਾਰੇ

Designers hand over colours as HEX codes, CSS can use RGB or HSL, and HSL is the easiest form for making a colour lighter or darker by hand. This converter takes a three- or six-digit hexadecimal colour and returns the normalized HEX code, the RGB values and the HSL values, ready to paste into CSS.

ਕਿਵੇਂ ਵਰਤਣਾ ਹੈ

  1. Enter a HEX colour such as #1e90ff or the short form #abc (the # is optional).
  2. Run the conversion.
  3. Copy the rgb() or hsl() value you need.
  4. To make a lighter tint, raise the lightness percentage in the HSL value.

ਗਣਨਾ ਕਿਵੇਂ ਕੰਮ ਕਰਦੀ ਹੈ

Short codes are expanded (#abc becomes #aabbcc). Each pair of hex digits is converted to a 0–255 channel, and RGB is converted to hue (degrees), saturation and lightness (percentages), rounded to whole numbers.

HEX → RGB → HSL

ਹੱਲ ਕੀਤੀ ਉਦਾਹਰਨ

The colour #1e90ff ("dodger blue") converts to rgb(30, 144, 255) and hsl(210, 100%, 56%). Changing the lightness to 85% in CSS gives a pale tint of the same hue for a background. The short code #abc expands to #aabbcc.

ਨਮੂਨਾ ਇਨਪੁੱਟ ਅਤੇ ਨਤੀਜਾ

#ff0000 → rgb(255, 0, 0) → hsl(0, 100%, 50%)

ਸੀਮਾਵਾਂ

  • 3- and 6-digit HEX input only.
  • No alpha channel, CMYK or named colours.
  • HSL values are rounded.

ਆਖਰੀ ਅੱਪਡੇਟ:

ਅਕਸਰ ਪੁੱਛੇ ਜਾਂਦੇ ਸਵਾਲ

Can I convert RGB to HEX?

This tool converts from HEX. Write each RGB channel as two hex digits with the number base converter.

Are 8-digit HEX codes with transparency supported?

No. Remove the last two (alpha) digits first.

Why are HSL values rounded?

Whole numbers are easier to read and edit; the rounding changes the colour by less than one RGB step.

ਸਮੱਸਿਆ ਹੱਲ

It rejects my colour.

Check for 8 digits (alpha), invalid letters beyond f, or extra spaces.

Printed colours look different.

Screens use RGB; printers use CMYK, and some RGB colours cannot be printed exactly.

The HSL round trip gives a slightly different HEX.

Rounding HSL to whole numbers can shift one channel by one step.

ਪਰਦੇਦਾਰੀ & ਮੁਫ਼ਤ ਵਰਤੋਂ

ਕੀ ਮੇਰਾ ਡਾਟਾ ਸਟੋਰ ਹੁੰਦਾ ਹੈ?

ਤੁਹਾਡਾ ਡਾਟਾ ਇਸੇ ਟੈਬ ਵਿੱਚ ਰਹਿੰਦਾ ਹੈ। ਸਾਨੂੰ ਤੁਹਾਡੀਆਂ ਫਾਈਲਾਂ, ਪੇਸਟ ਕੀਤਾ ਟੈਕਸਟ ਜਾਂ ਗਣਨਾ ਦੇ ਮੁੱਲ ਨਹੀਂ ਮਿਲਦੇ।

ਕੀ ਇਹ ਟੂਲ ਮੁਫ਼ਤ ਹੈ?

ਹਾਂ। ਕੋਈ ਸਾਈਨਅੱਪ ਜਾਂ ਭੁਗਤਾਨ ਨਹੀਂ ਚਾਹੀਦਾ।

ਤੁਹਾਡੇ ਬ੍ਰਾਊਜ਼ਰ ਵਿੱਚ ਪ੍ਰੋਸੈਸ

ਅਗਲੇ ਲਾਭਦਾਇਕ ਕਦਮ