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

  • SEARCH
  • Home
  • 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 8522031
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T06:59:39+00:00 2026-06-11T06:59:39+00:00

Given a set of 3 colors, keeping the same ratios, but starting with a

  • 0

Given a set of 3 colors, keeping the same ratios, but starting with a new color, generate the next two.

For example, the following is a pleasing blue gradient:

rgb(172, 228, 248) – Start

rgb(108, 205, 243) – Finish

rgb(121, 181, 203) – Border

I need to create a series of 10 similar gradients starting from different colors. I’d like the gradients to maintain the same light-to-dark ratios.

So, given the color: rgb(254, 218, 113) (yellow), how can I calculate the end and border colors with the same ratios as above?

  • 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-11T06:59:40+00:00Added an answer on June 11, 2026 at 6:59 am

    Here’s my try: suppose your initial three colors are:

    rgb(a1, b1, c1) --> Start
    rgb(a2, b2, c2) --> Finish
    rgb(a3, b3, c3) --> Border
    

    And suppose the color which you’d like to calculate the analogous pattern on is rgb(x1, y1, z1). The other two components are calculated like this:

    x2 = (a2 / a1) * x1, y2 = (b2 / b1) * y1, z2 = (c2 / c1) * z1
    x3 = (a3 / a2) * x2, y3 = (b3 / b2) * y2, z3 = (c3 / c2) * z2
    

    And thus your resulting colors are rgb(x2, y2, z2) and rgb(x3, y3, z3).

    Here’s the result of applying the method above on your example color (rgb(254, 218, 113)):

    enter image description here

    The two resulting colors are rgb(159, 196, 110) and rgb(178, 173, 92) (note that they’re rounded down to integers/whole numbers).

    I hope that helped in any manner!

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

Sidebar

Related Questions

Given the code : SQLiteCommand cmd = new SQLiteCommand(UPDATE \Category\ SET \name\=?name, \description\=?description, \color\=?color,
I can see that Collections.unmodifiableSet returns an unmodifiable view of the given set but
Given a set Paris New York London New York Paris Paris I'm trying to
how do i order a given set of colors from the rainbow in VIBGYOR
I'm trying to set a color of given pixel of the image. Here is
Given a binary tree with n leaves and a set of C colors. Each
Given a set of PDF files among which some pages are color and the
I'd like design a chart and set the colors from a single exemplar. Same
Is there any way of automating a site publish with a given set of
This is one of the solution of getting true or false from given set

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.