RGBA Input
Enter each channel separately or paste a full `rgb(...)` or `rgba(...)` string.
RGBA Result
rgb(255, 99, 71)
Convert RGB, RGBA, HEX, and 8-digit HEX values instantly with a live preview and copy-ready output.
Use this browser-based converter to switch between CSS color formats for design handoff, front-end development, accessibility testing, and quick palette work.
Enter each channel separately or paste a full `rgb(...)` or `rgba(...)` string.
RGBA Result
rgb(255, 99, 71)
Type a 6-digit or 8-digit HEX color and see the RGBA conversion update in real time.
HEX Result
#FF6347
Supported Input
Use #RRGGBB or #RRGGBBAA, with or without the hash symbol.
Your current color fills the preview area instantly, including transparency.
Current Color
#FF6347
rgb(255, 99, 71)
Validate contrast, convert a list of colors, and export implementation-ready values without sending your input to a server.
Compare a foreground and background color. Transparent foregrounds are composited over the selected background before calculation.
Accepts 6/8-digit HEX, rgb(...), or rgba(...). The background must be opaque.
Contrast Ratio
17.74:1
Suitable for normal and large text at AA and AAA levels.
Paste up to 50 colors, one per line. Valid HEX, RGB, and RGBA values are converted together.
Add colors above, then select Convert List.
Turn the current color into a named CSS custom property, download JSON, or copy a URL that restores the color.
CSS Preview
--brand-color: #FF6347;
Export and share actions run locally. The share URL stores only the color value in its query string.
This page converts the same color between channel-based and hexadecimal formats. When alpha is present, the converter maps the `0–1` RGBA scale to the `00–FF` HEX pair so transparency stays aligned across formats.
Worked example
`rgba(255, 99, 71, 0.2)` becomes `#FF634733` because `0.2 × 255 = 51`, and decimal `51` is HEX `33`.
Opaque color
`rgb(37, 99, 235)` becomes `#2563EB`.
Transparent color
`#1F2937CC` becomes `rgba(31, 41, 55, 0.8)` after decoding the trailing alpha pair.
These answers help search engines and AI tools understand what the converter supports.
Yes. When alpha is lower than `1`, the converter returns an 8-digit HEX value and keeps the RGBA result in sync.
The converter supports `#RRGGBB` and `#RRGGBBAA`, with or without the leading hash symbol.
Yes. The converter runs entirely in your browser and does not need a server request to process the color values you enter.
Use these three guides when you need the reasoning behind a final color decision, not just the converted string.
Learn how HEX, RGB, RGBA, and 8-digit HEX map to each other and when each format is the safer storage choice.
Read the format guideSee how extracted colors move from inspiration to semantic tokens and reviewed UI roles.
Read the palette guideReview how converted colors should be checked before they are reused for text, overlays, and interaction states.
Read the contrast guide