RGB to YUV Colour Converter – Free Online

From RGB to YUV, for video work

Web pages use RGB, but video does not. Television and video files use YUV, a colour space that splits a colour into brightness and colour. Y is the brightness, the part a black-and-white television could show. U and V carry the colour information, blue and red, on top of that brightness. This converter takes red, green and blue values and gives you the YUV values video tools expect.

The split exists for a practical reason. Human eyes are far more sensitive to brightness than to colour, so video can store the brightness in full detail and store the colour at lower detail without anyone noticing. That is how video files stay small. The Y value is the most important of the three: it decides how light or dark the colour looks, and it is also the greyscale version of the colour.

The maths is a fixed matrix. Y is 0.299 times red, plus 0.587 times green, plus 0.114 times blue. Green counts most because our eyes are most sensitive to green light. U and V use different weights, and they can be negative, because they measure how far a colour sits from grey in the blue and red directions. The tool does this maths for you and shows the result with a preview.

How to use the converter

Enter red, green and blue values from 0 to 255. The tool updates as you type, so you can move the numbers and watch the result change. The big result line shows the Y, U and V values. Under it, the detail line labels each value: Y for brightness, U for blue colour, V for red colour.

The two swatches show the original colour and its Y-only greyscale version side by side. The greyscale swatch is what the colour looks like with the colour information removed, which is useful when you check whether text will stay readable on a coloured background. The meaning line says whether the colour is dark, mid-brightness or bright, based on the Y value.

Worked example: pure red

Take red 255, green 0, blue 0. The Y value is 0.299 times 255, which is 76. The U value is minus 0.14713 times 255, which is minus 38. The V value is 0.615 times 255, which is 157. The tool shows Y 76, U minus 38, V 157.

The meaning line calls this a dark colour, because Y 76 sits below 85, the dark band. That surprises many people: pure red looks strong, but its brightness is low because red contributes only 0.299 to brightness. Green contributes 0.587, so pure green has a Y of 150, almost twice as bright. That is why green text on a dark background is easier to read than red text.

Who uses this converter

Video editors use it to check colours before export, because a colour that looks fine in RGB can shift in YUV. Broadcast engineers use it for the same reason: television standards are written in YUV, and a colour outside the safe range can look wrong on air. Students learning video compression use it to see the split between brightness and colour in action.

Web developers who work with video players use it too. When a video overlay or subtitle needs to stay readable, the Y value tells them whether the background is light or dark, which decides the text colour.

Honest limitations

There is more than one YUV standard. This tool uses the common BT.601 matrix, the standard for standard-definition video. High-definition video uses BT.709, which has slightly different weights, so the numbers will differ a little for HD work. Check which standard your tool expects before you rely on the values.

The tool also rounds to whole numbers, which is fine for checking a colour but not for exact broadcast work. And it converts one colour at a time, so a full palette needs one conversion per colour.

Frequently asked questions

What is YUV? A colour space used by video and television. Y is brightness, U carries the blue colour information and V carries the red colour information.

Why not just use RGB for video? Because eyes notice brightness more than colour. YUV lets video store brightness in full detail and colour at lower detail, which keeps files small without visible loss.

Why can U and V be negative? They measure how far a colour sits from grey. A colour with more blue than grey has a positive U, and a colour with less blue than grey has a negative U. The same idea applies to V and red.

What is the Y-only swatch? The greyscale version of your colour, made from the Y value alone. It shows how the colour would look on a black-and-white screen.

También disponible en español: Convertidor de RGB a YUV – Gratis en Línea

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top