Color Studio•Client-Side Processing

HEX to RGB & RGBA Converter Studio

Professional color converter with alpha opacity, modern CSS Color 4, OKLCH, batch conversion, WCAG 2.1 contrast auditor, and multi-framework code export.

#RGB, #RRGGBB, #RRGGBBAA
#
Fine Tune:
Channel Sliders (RGB & Alpha)0 - 255
Red (R)
31%79
Green (G)
27%70
Blue (B)
90%229
Alpha Opacity (A)
100%1.00
Popular Web & UI Colors:
Primary Output
Luminance: 12%
rgb(79, 70, 229)
Red (R)
79
31%
Green (G)
70
27%
Blue (B)
229
90%
Alpha (A)
1.00
100%
Developer Formats & Syntax ExportsClick any row to copy
CSS rgb() / rgba()CSS & Web
rgb(79, 70, 229)

Standard CSS syntax supported in all browsers

Modern CSS (Color 4)CSS & Web
rgb(79 70 229)

Modern space-separated CSS Color Module Level 4

CSS Custom PropertyCSS & Web
--color-primary: rgb(79, 70, 229);

Ready-to-use CSS variable

CSS RGB Channels TokenCSS & Web
--color-primary-rgb: 79, 70, 229;

Allows dynamic alpha via rgb(var(--color-primary-rgb) / 0.5)

Tailwind Config TokenCSS & Web
'brand': 'rgb(79 70 229 / <alpha-value>)'

Tailwind v3/v4 theme color with dynamic opacity support

JavaScript ObjectJavaScript & TypeScript
{ r: 79, g: 70, b: 229, a: 1 }

Parsed object with integer channels and alpha

RGB ArrayJavaScript & TypeScript
[79, 70, 229]

Channel numbers array

WebGL / Three.js NormalJavaScript & TypeScript
[0.31, 0.27, 0.90, 1]

Normalized 0.0 to 1.0 floats for shaders & canvas

SwiftUI ColorMobile & Apps
Color(red: 0.31, green: 0.27, blue: 0.90, opacity: 1)

iOS SwiftUI color initializer

Android Kotlin ARGBMobile & Apps
Color.argb(255, 79, 70, 229)

Native Android Kotlin Color instance

Android XML ColorMobile & Apps
<color name="color_brand">#4F46E5FF</color>

Android resources colors.xml entry

Flutter ColorMobile & Apps
Color(0xFF4F46E5)

Flutter 0xAARRGGBB hexadecimal format

HSL / HSLAColor Spaces
hsl(243, 75%, 59%)

Hue, Saturation, Lightness representation

HSV / HSBColor Spaces
hsv(243, 69%, 90%)

Hue, Saturation, Value used in digital design tools

CMYK (Print)Color Spaces
cmyk(66%, 69%, 0%, 10%)

Cyan, Magenta, Yellow, Key for printing reproduction

OKLCH (CSS Color 4)Color Spaces
oklch(0.51 0.23 277)

Perceptually uniform modern color space

Display P3 GamutColor Spaces
color(display-p3 0.31 0.27 0.90)

Wide color gamut for modern Apple and HDR displays

How to Use HEX to RGB & RGBA Converter Studio

01

Input any 3, 4, 6, or 8-digit HEX code (or pick directly via the interactive picker / screen eyedropper).

02

Fine-tune Red, Green, Blue, and Alpha opacity sliders in real time.

03

Switch to Batch Converter to process multiple colors at once, or WCAG Auditor to check accessibility contrast.

04

Copy code in your preferred format: CSS rgb(), Modern CSS Color 4, Tailwind CSS, JavaScript, SwiftUI, or Flutter.

Frequently Asked Questions

Does it support 8-digit HEX with alpha transparency?

Yes, both 4-digit (#RGBA) and 8-digit (#RRGGBBAA) hex codes are parsed automatically to extract the alpha opacity channel.

What is Modern CSS Color 4 syntax?

Modern CSS Color Level 4 uses space-separated channels like rgb(79 70 229 / 85%) instead of comma-separated rgba(). It is supported across all modern browsers.

Can I convert multiple hex codes simultaneously?

Yes, use the Batch Converter tab to paste a list of HEX codes, design tokens, or CSS snippets. You can copy the results as CSS variables, JSON, or Tailwind config.

How does the WCAG contrast auditor work?

It calculates the relative luminance of your color against pure white (#FFFFFF), black (#000000), or any custom background, evaluating AA and AAA compliance for normal and large text.

Related Developer Tools

Explore more free client-side developer utilities in this category

View All Tools