Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8195497
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T05:09:36+00:00 2026-06-07T05:09:36+00:00

I have a color picker in my application that users can use to pick

  • 0

I have a color picker in my application that users can use to pick colors of certain objects that the application outputs. The color picker is outputting the color chosen in RGBA format. However, I need the HTML color code. I need to be able to convert RGBA, without knowing the color ahead of time, to HTML and use it as a string later. How would I go about doing this?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T05:09:37+00:00Added an answer on June 7, 2026 at 5:09 am

    RGBA is natively supported by CSS3:

    div {
       background: rgba(200, 54, 54, 0.5); 
    }
    

    Firefox, Safari, Chrome, IE9 and Opera browsers all support RGBA. Older IE’s do not support it.

    Fortunately, you can specify RGBA colours for browsers that support it and an alternative for browsers that do not. Check this link for a great howto.

    These are the two options: – from the link –

    1. FALLING BACK TO SOLID COLOUR: Allow the browser to fall back to using a solid colour when opacity isn’t available. The

    h1 {
         color: rgb(127, 127, 127); 
         color: rgba(0, 0, 0, 0.5); //for modern browsers only
    }
    

    2. FALLING BACK TO A PNG: In cases where you’re using transparency on a background-color (although not on borders or text) it’s possible to fall back to using a PNG with alpha channel to get the same effect. This is less flexible than using CSS as you’ll need to create a new PNG for each level of transparency required, but it can be a useful solution.

    h1 {
         background: transparent url(imageName.png);
         background: rgba(0, 0, 0, 0.5) none; //for modern browsers only
    }
    

    What I am trying to say is that you do not need the HTML color code, you just need to add the css property rgba – with javascript or jquery – after you pick up the color and I think you are done.

    Hope it helps.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

So I have a color picker. Users can pick colors using RGB or HSB.
I need to have a JQuery color Picker, where I can change the different
I have an application where I have a jQuery color picker. I will get
I have heard that jQuery UI includes a Color Picker but could find little
I have followed a tutorial over at http://www.yougli.net/android/a-photoshop-like-color-picker-for-your-android-application/ But couldn't find a way of
I currently have a simple color picker that loads in a color gradient image
What Control can I use in WPF to emulate the Word Color Picker? In
How do I add a color picker in Komodo? I need to have a
I have a colorpicker field that loads with a default color and then the
I have a jQuery colorpicker that the visitor can change and I am trying

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.