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

Copy Color

NotAVirusNotAVirus86 downloads

Show a color swatch in your notes. Click to copy, or convert between color formats.

Add to Obsidian
  • Overview
  • Scorecard
  • Updates4
A note with color swatches next to hex, rgb and hsl codes

Copy Color

See the colors in your notes, and copy or convert them with one click.

Write a color code like #ff8800 or rgb(255, 136, 0) in a note, and Copy Color shows a small swatch of that color next to it. Handy for design notes, palettes and style guides.

Installation

  1. In Obsidian, open Settings > Community plugins.
  2. Turn on community plugins if they're off, then select Browse.
  3. Search for Copy Color, then select Install and Enable.

Usage

  • See the color: color codes get a swatch in Reading view and Live Preview, with a few exceptions.
  • Copy it: click or tap a code to copy it as written.
  • Copy it in another format: right click and choose hex, rgb or hsl (desktop only).
  • Convert it in the note: in Live Preview, right click a color and choose Convert to.
  • Convert many at once: in Live Preview, use the command palette (Convert colors to hex, to rgb or to hsl) or right click a selection.

While your cursor is on a color in Live Preview, you see the plain text, so you can edit it as usual.

Hex codes and tags

Obsidian reads a bare #ff8800 as a tag. To get a swatch, put it in backticks or add a backslash:

The button is `#ff8800` and the border is \#ff8800.

Hex codes made only of digits, like #123456, aren't tags, so they work as is, and so do rgb() and hsl(). For the same reason, converting to hex outside backticks writes \#ff8800.

Supported colors

Format Example
Hex #ff8800
Hex with alpha #ff880080
RGB rgb(255, 136, 0) or rgb(255 136 0)
RGB with alpha rgba(255, 136, 0, 0.5) or rgb(255 136 0 / 50%)
HSL hsl(32, 100%, 50%) or hsl(32 100% 50%)
HSL with alpha hsla(32, 100%, 50%, 0.5) or hsl(32 100% 50% / 50%)

Short hex codes like #abc aren't supported, because they are too easily confused with tags.

When a color gets no swatch

  • It's attached to other text, as in color:#ff8800 or "#ff8800". Punctuation right after it is fine.
  • It's in a code block, math or front matter.
  • It's inside formatting: bold, italics, highlights, strikethrough, links, comments or inline HTML.
  • You're in Source mode.

Privacy

Copy Color only writes to your clipboard when you click or tap a color or choose a copy option. It never reads your clipboard, uses the network or collects data.

License

MIT

HealthExcellent
ReviewPassed
About
Show a color swatch next to hex, rgb and hsl codes in your notes, in Live Preview and Reading view. Click a code to copy it, right click to copy it in another format, or convert the colors in a note or selection between formats.
AppearanceInterface
Details
Current version
0.3.0
Last updated
6 days ago
Created
2 weeks ago
Updates
4 releases
Downloads
86
Compatible with
Obsidian 1.15.0+
Platforms
Desktop, Mobile
License
MIT
Report bugRequest featureReport plugin
Author
NotAVirusNotAVirusklaegkev
GitHubklaegkev
  1. Community
  2. Plugins
  3. Appearance
  4. Copy Color

Related plugins

Hider

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

Cursor-Smith

Forge your cursor with the most advanced cursor engine there is!

Shrink pinned tabs

Shrinks pinned tabs to save screen space.

Zen Mode

Hide most UI elements.

Minimal Theme Settings

Control the colors and fonts in Minimal Theme.

Meta Bind

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

Note Toolbar

Add customizable toolbars to your notes.

Supercharged Links

Add attributes to internal links with the values of target note's frontmatter attributes.

Editing Toolbar

The Editing Toolbar is modified from cMenu, which provides more powerful customization settings and has many built-in editing commands to be a MS Word-like toolbar editing experience.

Force note view mode

Force the view mode for a note by using frontmatter: YAML block with 'obsidian_ui_mode' as key.