Skip to main content
FLUX.2 supports precise color matching using hex codes. Useful for brand consistency, design work, and any scenario where exact colors matter. Signal hex colors with keywords like “color” or “hex” followed by the code, and associate each hex value clearly with a specific object or surface.

Basic Syntax

Signal hex colors with keywords like “color” or “hex” followed by the code:
Basic hex color syntax example with blue apple illustration
Apple: #0047AB

a vintage illustration of an apple in color #0047AB with a heart-shaped cutout in the middle, on a white background

Brand color example
Walls: #C4725ASofa: #1B6B6FAccent: #E8A847

A modern living room with warm terracotta walls in hex #C4725A, a large L-shaped sectional sofa in deep teal hex #1B6B6F, and golden amber hex #E8A847 accent pillows, throw blanket, and a velvet ottoman.

Sunflower with hex color prompting
Sunflower: #C92695

sunflower in color #C92695

Liquid lucid composition with hex colors
#00FF2F#0D00FF#FF0000

An aesthetically pleasant liquid lucid composition of predominantly wintery colors with deep, rich and saturated #00FF2F #0D00FF #FF0000

Gradient Colors

Apply gradients by specifying start and end colors:
Vase with gradient colors
Start: #02eb3cEnd: #edfa3cFlowers: #ff0088

A vase on a table in living room, the color of the vase is a gradient, starting with color #02eb3c and finishing with color #edfa3c. The flowers inside the vase have the color #ff0088

Round silk throw pillow with radial gradient
Center: #6A0DADEdges: #FFD700

A round silk throw pillow resting on a light gray linen sofa, the fabric of the pillow shows a radial gradient from rich purple (#6A0DAD) at the center fading outward to warm gold (#FFD700) at the edges, even ambient indoor lighting, close-up perspective.

Panoramic sky with three horizontal gradient color zones
Upper: #1B0A3EMiddle: #CF6A2EHorizon: #E8728A

A wide panoramic view of a vast open sky stretching above a flat horizon line hills. The sky fills the entire frame and displays three distinct horizontal color zones blending smoothly into each other. The upper portion of the sky is deep indigo (#1B0A3E), gradually transitioning through the middle into a warm burnt amber (#CF6A2E), and the lowest section near the horizon glows in soft rose pink (#E8728A).

Product shot with pink-to-purple-to-blue gradient backdrop
Pink: #FF0080Violet: #7928CACobalt: #0070F3

Studio product still, seamless gradient backdrop transitioning left-to-right from hot pink (#FF0080) through violet-purple (#7928CA) into electric cobalt blue (#0070F3), velvet smooth, zero banding. Single hero product centered, matte surface with soft specular catch. Large softbox 45° camera-left, rim light camera-right for edge definition. 85mm lens, f/8, dead-center eye-level.

Hex codes work best when clearly associated with specific objects. Vague references like “use #FF0000 somewhere” may produce inconsistent results.