FPGA Video Color Calculator (PAL / VGA / HDMI)

This tool converts an 8-bit RGB color (via color picker, R/G/B fields or quick preset swatches) to YCbCr using either the BT.601 or BT.709 matrix, in full or studio/limited range, and shows the resulting luma, chroma and reconstructed quantized RGB. The same color is also expressed as PAL composite analog levels (IRE/mV against a 1 Vpp signal) and as U/V subcarrier amplitude and phase, with a clipping check against the 133 IRE transmission limit.

Independently of the YCbCr path, the original color is packed into common FPGA framebuffer pixel formats (RGB332/444/565/888 and an arbitrary target bit depth for VGA resistor-ladder DACs), and a Verilog lookup table for an EBU 100% color bars generator is produced at the selected bit depth, range and matrix.

RGB ↔ YCbCr Formatter

Calculated YCbCr / Luma / Chroma

Analog Video Levels (PAL)

Calculates approximate IRE and mV values for the selected Y (Luma) value. Assumes 1Vpp composite signal (Sync: -300mV, Black: 0mV, White: 700mV).

PAL Composite Subcarrier

Calculates U/V quadrature components, chroma amplitude, and subcarrier phase (NTSC/PAL phase angle). Also checks for transmission clipping (exceeding 133 IRE).

FPGA RGB Pixel Formats (VGA / Framebuffer)

Calculates packed hex words and quantized RGB bit-slices often used for VGA resistor ladders and SRAM memory buffers. This applies directly to the selected original color, completely bypassing YCbCr.

FPGA Color Bars Generator (Verilog)

Generates a Verilog lookup table (LUT) for EBU 100% Color Bars. Values are scaled strictly to your selected 8-bit depth and selected range/matrix.