Free to use, no account

Fargeblander

Bland farger med justerbare vekter, sammenlign to digitale blandingsmetoder, og lag en fargegradering mellom de to første fargene. Ingenting lastes opp.

Farger som skal blandes

Metoden du velger, påvirker resultatet. sRGB blander de viste kanalverdiene; lineært lys konverterer kanalene før blanding.

Dette beregner digitale skjermfarger, ikke hvordan ekte maling eller pigmenter blandes.

Kjører i denne nettleseren. Fargene lastes ikke opp eller lagres automatisk.

Hvordan blander jeg to farger på nettet?

Velg minst to farger, angi vekten til hver og velg blanding i sRGB eller lineært lys. Resultatet viser HEX-, RGB- og HSL-verdier.

Veiledning

Slik bruker du color-mixer

The Color Mixer blends two to eight colors using weights you choose, then shows the result as HEX, RGB and HSL. You can mix in sRGB, which averages the screen values, or in linear light, which converts to light values first. It also builds a ramp of 2 to 16 swatches between the first two colors and can save them as CSS variables. It predicts how colors combine on a screen, not how real paint or pigment would mix.

Slik gjør du

  1. Set each color with the color chooser or by typing a 3 or 6 digit hex value, and give it a weight from 0 to 1000. Weights are relative, so 1 and 1 act the same as 50 and 50.
  2. Use Add color to add rows, up to 8 in all. Remove takes a row away, but at least 2 rows must stay.
  3. Pick the mixing method, sRGB or Linear light, and the number of ramp swatches, then press Mix colors.
  4. Read the HEX, RGB and HSL values and the ramp. Copy HEX copies the mixed color, and Download CSS saves the ramp as --uv-color-1, --uv-color-2 and so on in color-palette.css.

Eksempler

Red and blue, equal weights, sRGB

Du skriver inn
Farger
#FF0000 weight 50; #0000FF weight 50
Metode
sRGB
Fargeprøver
5
Du får
HEX
#800080
RGB
rgb(128, 0, 128)
HSL
hsl(300 100% 25%)
Fargeskala
#FF0000; #BF0040; #800080; #4000BF; #0000FF

Each channel is averaged: red is 255 x 0.5 = 127.5, which rounds to 128, and blue is the same. The middle swatch of the ramp equals the mix. This is also the example the page loads.

Kjørt med verktøyets egen kode.

The same two colors in linear light

Du skriver inn
Farger
#FF0000 weight 50; #0000FF weight 50
Metode
Linear light
Fargeprøver
5
Du får
HEX
#BC00BC
RGB
rgb(188, 0, 188)
HSL
hsl(300 100% 37%)
Fargeskala
#FF0000; #E10089; #BC00BC; #8900E1; #0000FF

The channels are first turned into light values, averaged, and turned back. The result is clearly brighter than the sRGB mix, with lightness 37% against 25%, so the method you choose changes the answer.

Kjørt med verktøyets egen kode.

Unequal weights: three parts red, one part white

Du skriver inn
Farger
#FF0000 weight 75; #FFFFFF weight 25
Metode
sRGB
Du får
HEX
#FF4040
RGB
rgb(255, 64, 64)
HSL
hsl(0 100% 63%)

Red keeps 255 in its channel from both colors. The green and blue channels get 25% of white's 255, which is 63.75 and rounds to 64. The result is a light red.

Kjørt med verktøyets egen kode.

Når det er nyttig

  • Find a midpoint between two brand colors for a hover state or a chart.
  • Build an even set of steps between two colors for a UI scale, and save it as CSS variables.
  • Compare sRGB and linear-light blending when you are working on graphics code.
  • Show students that averaging colors on a screen depends on the math behind the numbers.

Begrensninger

  • It is digital color math for screens. It is not a model of paint, ink or pigments, so a physical mix of the same colors can look quite different.
  • You can mix 2 to 8 colors, each weight must be from 0 to 1000, and at least one weight must be above zero. Colors must be hex with 3 or 6 digits, with no alpha channel or color names.
  • The ramp always runs between the first two colors in the list, with the chosen method. It ignores the weights and any later colors.
  • Channels are rounded to whole numbers from 0 to 255, and HSL values to whole numbers. Changing any input hides the old result, so press Mix colors again.

Tips

  • Try both methods on the same pair of colors and keep the one that looks right for your use. In the red and blue example, linear light came out noticeably brighter.
  • To get a given proportion, use weights in that ratio. Weights of 3 and 1 give a 75% and 25% mix.
  • The tool does not check readability. If you plan to put text on a mixed color, test the contrast with a separate checker.

Vanlige spørsmål

What is the difference between sRGB and linear-light mixing?

sRGB mixing averages the encoded values you see in a hex code. Linear-light mixing first converts each channel into a light value, averages those, then converts back. The two give different answers, and the second is often brighter for the same colors.

Can it predict what mixed paint will look like?

No. Paint and ink mix by absorbing light, and the outcome depends on the pigments, how thick they are and the surface. This tool only does screen math on red, green and blue values, so use it for digital design, not for a real mix.

What do the weights do?

They set how much each color counts. The tool divides every weight by the total, so only the ratio matters. A weight of 0 leaves that color out. If every weight is 0 the tool shows an error, because there is nothing to mix.

Why does the ramp ignore my third color?

By design the ramp runs from the first color to the second, in the number of steps you pick, and uses the chosen mixing method. Put the two colors you want to blend between at the top of the list.

What can I copy or download?

Copy HEX copies the mixed color as a six-digit code. Download CSS saves the ramp as a small file that declares one custom property per swatch. The page also shows the RGB and HSL values to read or copy by hand.

Can I type a short hex such as F00?

Yes. A three-digit hex is expanded to six digits, so F00 means FF0000. The # is optional in the hex box. Eight-digit hex with transparency and named colors such as red are not accepted.

Are my colors uploaded anywhere?

No. The mixing runs in your browser, and the page states that colors are not uploaded or saved automatically.

Kilder

Ofte stilte spørsmål

Hvordan blander jeg to farger på nettet?

Velg minst to farger, angi vekten til hver og velg blanding i sRGB eller lineært lys. Resultatet viser HEX-, RGB- og HSL-verdier.

Lastes fargene mine opp?

Nei. Fargeberegningene kjøres lokalt i nettleseren. Du trenger ingen konto eller bildeopplasting.

Hvorfor ser sRGB- og lineært lys-blanding forskjellig ut?

sRGB beregner gjennomsnittet av de kodede skjermkanalverdiene. Modus for lineært lys konverterer dem først til lysverdier, blander dem og konverterer tilbake. Metoden du velger, endrer resultatet.

Kan dette forutsi fargen når jeg blander maling?

Nei. Dette er digital fargematematikk for skjermer, ikke en fysisk pigmentmodell. Ekte maling avhenger av pigmentegenskaper, gjennomsiktighet, konsentrasjon, belysning og underlaget.

Hvilke fargeformater kan jeg kopiere?

Resultatet viser HEX, RGB og HSL. Du kan kopiere HEX-verdien eller laste ned en liten CSS-fargepalett.