tools.junyo.dev

hex to rgb

Convert HEX to RGB

HEX is compact for design tokens; RGB is practical in CSS, Canvas and APIs that expect separate channels.

Approved intentConvert a hexadecimal color to CSS RGB.

How to use the presetThe Color Converter below already starts with `#00fa9a`, so the RGB/RGBA output is ready alongside the other notations.

Conversion rules

  • Each hexadecimal pair represents a 0–255 channel: RR, GG and BB.
  • 3-digit HEX expands each character (#0f8 becomes #00ff88). 8-digit HEX includes alpha.

HEX → RGB examples

Mint green

Input
#00fa9a
Expected output
rgb(0, 250, 154)

tools.junyo.dev visual accent.

Shorthand HEX

Input
#0f8
Expected output
rgb(0, 255, 136)

#RGB → #RRGGBB expansion.

Frequently asked questions

Do HEX and RGB represent the same color?

Yes, when both are in sRGB and alpha is unchanged.

Can HEX include transparency?

Yes. Use 8 digits (#RRGGBBAA) or 4 in shorthand form (#RGBA).

We use aggregate analytics and manual ads only with consent. The tools keep working even if you decline.