Color

#540c7e

#540c7e
hex#540c7e
rgbrgb(84, 12, 126)
hslhsl(278, 83%, 27%)
oklchoklch(0.355 0.17 307.6)
Closest name: indigo (#4b0082)Relative luminance 0.0365

Tints & shades

Every swatch is its own page — click any to analyze it.

Harmonies

Complementary

Open in tool →

#367e0c

#1b0c7e · #7e0c6f

#7e540c · #0c7e54

Split-complementary

Open in tool →

#6f7e0c · #0c7e1b

#7e1b0c · #367e0c · #0c6f7e

Contrast

#540c7e as textRatioAAAA largeAAAFix
Aaon white
12.13:1passpasspassPasses AAA — no fix needed.
Aaon black
1.73:1failfailfail
  • AA: use #ac3bed as the text (4.6:1)
  • AAA: use #c373f2 as the text (7.05:1)
  • AA: or shift the background to #9e9e9e (4.53:1)
  • AAA: or shift the background to #c7c7c7 (7.18:1)

Fixes keep hue and saturation and move lightness only, so the suggestion stays on-brand. Ratios are symmetric: the same numbers apply with #540c7e as the background.

Brands using this color

No public brand in the corpus uses this exact color yet. Extract a brand to add one.

Fonts for this mood

#540c7e reads as cool, vivid, dark. The font library is tagged with the same vocabulary:

mcpConnect your agent — build around #540c7e
live endpoint

Point any MCP client at the shared colors endpoint and your agent gets the same engine as this page — generate_palette, check_contrast, analyze_color — read-only, no key. Every palette it proposes comes with a /palettes/new/… link: open it, lock what you like, paste the link back.

endpointhttps://mcp.brandsweets.com/colors/mcp
claude mcp add --transport http brandsweets-colors https://mcp.brandsweets.com/colors/mcp
try this prompt

analyze #540c7e and generate a 5-color palette that keeps it as the primary; give me the /palettes/new link

tool url/palettes/new/540c7e-ba9cc4-bbcb62-2d1f2c-ebe9f1?lock=0&style=vibrant

Want the agent to remember your picks and write them into a living brand? Create a free BrandSweets workspace.

Machine-readable: color.md