Search...Search plugins and themes...
⌘K
Sign in
  • Get started
  • Download
  • Pricing
  • Enterprise
  • Account
  • Obsidian
  • Overview
  • Sync
  • Publish
  • Canvas
  • Mobile
  • Web Clipper
  • CLI
  • Learn
  • Help
  • Developers
  • Changelog
  • About
  • Roadmap
  • Blog
  • Resources
  • System status
  • License overview
  • Terms of service
  • Privacy policy
  • Security
  • Community
  • Plugins
  • Themes
  • Discord
  • Forum / 中文论坛
  • Merch store
  • Brand guidelines
Follow us
DiscordTwitterBlueskyThreadsMastodonYouTubeGitHub
© 2026 Obsidian

Color Preview

stephanteigstephanteig83 downloads

Render color swatches from hex codes with RGB, CMYK, and PMS data. Includes palette blocks, inline dot previews, click-to-edit, and multiple insertion methods.

Add to Obsidian
  • Overview
  • Scorecard
  • Updates10
Color Preview

Color Preview turns raw hex codes into beautiful, interactive color cards inside your Obsidian notes — perfect for brand guidelines, design systems, and color documentation.


Features

  • Color cards — visual swatch with hex, RGB, CMYK, and PMS displayed below
  • Palette blocks — display a whole brand palette as a horizontal strip of swatches
  • Inline dot previews — small color dots appear automatically next to any hex code in your notes
  • Click swatch to edit — tap any swatch to open the color picker and update the hex in place
  • Click to copy — tap any value (HTML / RGB / CMYK) to instantly copy it to clipboard
  • Auto-calculated values — if only a hex is provided, RGB and CMYK are approximated automatically
  • Multiple insertion methods — ribbon icon, /color slash command, paste detection, command palette, and more
  • PDF / DOCX safe — the underlying markdown stays readable as plain text when exported

Color Card

Write a color fenced code block with any combination of fields:

```color
name: Marineblå
hex: #23264F
rgb: 35, 38, 83
cmyk: 100, 94, 33, 33
pms: 524C
```

Only hex is required. If rgb or cmyk are omitted, approximate values are calculated automatically and shown in italic.

Minimal example — hex only
```color
hex: #27AE60
```

RGB and CMYK are derived from the hex and marked with ~ to indicate they are approximate.


Palette Block

Show an entire brand palette as a side-by-side strip. Click any swatch to copy its hex.

```palette
#23264F Marineblå
#29306E Mellomblå
#2C4A9A Blå
#FFFFFF Hvit
#1A1A1A Kull
```

Each line accepts either #hex name or name: #hex format.


Inline Dot Previews

Hex codes anywhere in your notes automatically get a small color dot — no extra syntax needed.

The primary color is `#23264F` and the accent is `#C0392B`.
Plain text works too: background is #F2F2F2.

Inserting Colors

Method How
Ribbon icon Click the palette icon in the left sidebar
/color Type /color in any note for a 4-option dropdown
Paste detection Paste a bare #RRGGBB → choose Insert as block or Insert as text
Command: color picker Color Preview: Insert color (color picker)
Command: type hex Color Preview: Insert color (type hex)
Command: from clipboard Color Preview: Insert color from clipboard
Command: empty template Color Preview: Insert empty color block
Command: convert Select old-format color text → Color Preview: Convert selection to color block

Editing Colors

Click any color swatch to open the color picker and update the hex: value in the note directly — no manual editing needed. Works in both Live Preview and Reading view.

On mobile, tapping the swatch opens a hex input modal pre-filled with the current color.


Installation

Community Plugin Browser (once approved)

  1. Open Settings → Community plugins
  2. Disable Restricted mode if prompted
  3. Click Browse and search for Color Preview
  4. Click Install → Enable

Manual

  1. Download main.js, manifest.json, and styles.css from the latest release
  2. Copy them into <vault>/.obsidian/plugins/color-preview/
  3. Reload Obsidian and enable the plugin under Settings → Community plugins

Settings

Setting Default Description
Swatch height 80px Height of the color rectangle
Max card width 320px Maximum width of the color card
Show color name On Whether to display the name field in the card

Screenshots

Add screenshots to the assets/ folder and update the paths below.

Color cards Palette block
Color cards Palette
Inline dots Color picker
Inline dots Picker

License

MIT © Stephan Teig

99%
HealthExcellent
ReviewPassed
About
Display interactive color cards from hex codes with swatches showing hex, RGB, CMYK and PMS and click-to-copy values. Show palette blocks as horizontal strips and add inline dot previews beside any hex; edit swatches with a color picker to update hex in-place.
AppearanceEditingMarkdown
Details
Current version
1.2.1
Last updated
5 days ago
Created
Last month
Updates
10 releases
Downloads
83
Compatible with
Obsidian 1.0.0+
Platforms
Desktop, Mobile
License
MIT
Report bugRequest featureReport plugin
Author
stephanteigstephanteig
github.com/stephanteig
GitHubstephanteig
  1. Community
  2. Plugins
  3. Appearance
  4. Color Preview

Related plugins

Outliner

Work with your lists like in Workflowy or Roam Research.

Various Complements

Complete words similar to auto-completion in an IDE.

Lapel

Show the heading levels in the gutter of the editor.

Show Whitespace

CSS styles and CM6 extensions to highlight whitespace in Source and Live Preview modes.

Advanced Tables

Improved table navigation, formatting, and manipulation.

Minimal Theme Settings

Control the colors and fonts in Minimal Theme.

Importer

Import data from Notion, Evernote, Apple Notes, Microsoft OneNote, Google Keep, Bear, Roam, and HTML files.

Hider

Hide interface elements such as tooltips, status bar, titlebar, and more.

Meta Bind

Make your notes interactive with inline input fields, metadata displays, and buttons.

Style Settings

Adjust theme, plugin, and snippet CSS variables.