Color Palettes¶

Choose from professional color palettes designed for different contexts and data types.

Available Palettes¶

Rekha (Default)¶

A vibrant, balanced palette suitable for most visualizations.

fig = rk.bar(df, x='category', y='value',
             palette='rekha')  # This is the default
Rekha Palette Rekha Palette

Pastel¶

Soft, muted colors ideal for presentations and reports.

fig = rk.scatter(df, x='x', y='y', color='category',
                 palette='pastel')
Pastel Palette Pastel Palette

Earth¶

Natural, earthy tones perfect for environmental or organic data.

fig = rk.line(df, x='year', y='temperature', color='region',
              palette='earth')
Earth Palette Earth Palette

Ocean¶

Blues and aquatic colors for marine or water-related data.

fig = rk.bar(df, x='depth', y='pressure',
             palette='ocean')
Ocean Palette Ocean Palette

Warm¶

Reds, oranges, and yellows for heat-related or energetic visualizations.

fig = rk.heatmap(correlation_matrix,
                 palette='warm')
Warm Palette Warm Palette

Cool¶

Blues, greens, and purples for calm, professional visualizations.

fig = rk.scatter(df, x='x', y='y', color='group',
                 palette='cool')
Cool Palette Cool Palette

Monochrome¶

Grayscale variations for grayscale printing or minimalist design.

fig = rk.bar(df, x='category', y='value', color='type',
             palette='monochrome')
Monochrome Palette Monochrome Palette

Vibrant¶

High-contrast, bright colors for maximum visual impact.

fig = rk.scatter(df, x='x', y='y', color='cluster',
                 palette='vibrant')
Vibrant Palette Vibrant Palette

Code Editor Palettes¶

Popular editor themes adapted for data visualization.

Ayu¶

Warm and vibrant colors from the Ayu theme.

fig = rk.bar(df, x='category', y='value', color='type',
             palette='ayu')
Ayu Palette Ayu Palette

Dracula¶

Dark theme with vibrant accents.

fig = rk.scatter(df, x='x', y='y', color='category',
                 palette='dracula')
Dracula Palette Dracula Palette

Monokai¶

Classic syntax highlighting colors.

fig = rk.line(df, x='time', y='value', color='series',
              palette='monokai')
Monokai Palette Monokai Palette

Solarized¶

Carefully chosen colors with precise contrast ratios.

fig = rk.bar(df, x='month', y='sales', color='product',
             palette='solarized')
Solarized Palette Solarized Palette

Nord¶

Arctic, north-bluish color palette.

fig = rk.scatter(df, x='x', y='y', color='group',
                 palette='nord')
Nord Palette Nord Palette

Gruvbox¶

Retro groove colors with warm hues.

fig = rk.line(df, x='date', y='metric', color='category',
              palette='gruvbox')
Gruvbox Palette Gruvbox Palette

Usage¶

# Specify palette parameter
fig = rk.bar(df, x='month', y='sales', color='product',
             palette='ocean')

# Works with dark mode
fig = rk.line(df, x='time', y='value', color='series',
              palette='cool',
              dark_mode=True)

# Override specific colors
fig = rk.scatter(df, x='x', y='y', color='category',
                 palette='earth',
                 color_mapping={'Special': '#FF0000'})

# Combine with grayscale patterns
fig = rk.bar(df, x='category', y='value', color='type',
             palette='cool',
             grayscale_friendly=True)