Skip to content
#8E5C3A
#E8C878
#8EA05C
#2E1406
Background
Large text / UI
Decorative / accent
Large text / UI

Bahia Palace Color Palette

#8E5C3A · #E8C878 · #8EA05C · #2E1406

Fail
WCAG Grade
3.07:1
Contrast Ratio
AI Prompt

Use #8E5C3A as the background. Use #E8C878 as the primary accent. Use #8EA05C as secondary. Use #2E1406 as body text/supporting color. Palette mood: Bahia Palace — palace, gilt, courtyards.

Hex Codes, RGB & CMYK Color Values

Technical breakdown for the Bahia Palace color scheme. Use these values for web design (HEX/RGB), print projects (CMYK), or specialized design software (HSL).

Swatch Design Role HEX RGB CMYK HSL
Background
Luminance: 13.7%
142, 92, 58 0%, 35%, 59%, 44% 24°, 42%, 39%
Large text / UI
Luminance: 59.8%
232, 200, 120 0%, 14%, 48%, 9% 43°, 71%, 69%
Decorative / accent
Luminance: 31.7%
142, 160, 92 11%, 0%, 42%, 37% 76°, 27%, 49%
Large text / UI
Luminance: 1.1%
46, 20, 6 0%, 57%, 87%, 82% 21°, 77%, 10%

Bahia Palace Tints & Shades

Hover states, borders and elevation need lighter and darker steps of your base colors. Here are computed tints and shades for every color in the Bahia Palace palette — click any swatch to copy its hex.

#8E5C3A gently saturated orange
#E8C878 saturated orange
#8EA05C gently saturated yellow-green
#2E1406 saturated orange

Bahia Palace Palette Contrast Matrix (WCAG 2.1)

Every color tested as text on every other color as background. Body copy needs 4.5:1 (AA), large text and UI components 3:1. AAA requires 7:1.

Text on Background Preview Ratio Grade Safe For
#2E1406 on #E8C878
Aa Sample Text
10.63:1 AAA Body text, headings, UI
#E8C878 on #2E1406
Aa Sample Text
10.63:1 AAA Body text, headings, UI
#2E1406 on #8EA05C
Aa Sample Text
6.01:1 AA Body text, UI
#8EA05C on #2E1406
Aa Sample Text
6.01:1 AA Body text, UI
#E8C878 on #8E5C3A
Aa Sample Text
3.46:1 Fail Large headings, UI components
#8E5C3A on #E8C878
Aa Sample Text
3.46:1 Fail Large headings, UI components
#2E1406 on #8E5C3A
Aa Sample Text
3.07:1 Fail Large headings, UI components
#8E5C3A on #2E1406
Aa Sample Text
3.07:1 Fail Large headings, UI components
#8EA05C on #8E5C3A
Aa Sample Text
1.95:1 Fail Decorative use only
#8E5C3A on #8EA05C
Aa Sample Text
1.95:1 Fail Decorative use only
#8EA05C on #E8C878
Aa Sample Text
1.76:1 Fail Decorative use only
#E8C878 on #8EA05C
Aa Sample Text
1.76:1 Fail Decorative use only

Palette Details

The Bahia Palace is Marrakechs masterpiece of carved cedar, zellige tile, and gilded ceilings around shaded courtyards. Two of the four colors are balanced (27–42%) and the other two are highly saturated (71–77%), with lightness running 10–69%. Body text #2E1406 on #8E5C3A measures 3.07:1 (the 3:1 large-text threshold only); the accent #E8C878 measures 3.46:1 against the same background.

Color Harmony: Analogous

Two neighbouring hue groups sit 47° apart (29°, 76°) — the extended analogous range.

Hue Wheel

Neighbouring hues read as cohesive and give little contrast between slots; build hierarchy from the lightness ladder rather than from hue.

History & Design Context

The Bahia Palace was built in the 1860s-90s for the grand vizier Si Moussa and his son Ba Ahmed, using craftsmen from across Morocco; its name means brilliance, and its harem and great courtyard survive intact.

Best Design Use Cases

Use the mahogany for the woodwork, gilt gold for the ceilings and accents, tile green for details, and the darkest brown for text.

Measured best pair: #2E1406 on #E8C878 at 10.63:1 (AAA). Use this pair for paragraph copy; the surface roles above are not body-text prescriptions.

Colors That Pair Well With Bahia Palace

Need a fifth color? These three companions are computed from the palette's own hue positions on the color wheel, so they extend the scheme without breaking its harmony.

blue

directly opposite #E8C878 on the wheel — the strongest accent for CTAs and highlights when you need maximum energy

yellow-green

30° beside #E8C878 — a calm secondary that extends the palette without adding tension

tinted neutral

a paper-white carrying the palette's own hue — perfect for surfaces and dividers

Using Bahia Palace Without Breaking Accessibility

  • Use #E8C878 for buttons and links — it scores 3.46:1 against the #8E5C3A background (above the 3:1 UI-components threshold).
  • Don't set body copy in #2E1406 on #8E5C3A — 3.07:1 fails WCAG AA; keep it for large decorative headings only.
  • Let #8EA05C carry sidebars, cards and footers — at a mid lightness it separates zones without stealing focus from #E8C878.

How to Implement the Bahia Palace Color Scheme

To use this Bahia Palace color palette in your web project, copy the CSS variables below or open the export panel for Tailwind, SCSS and Figma formats.

Option 1: CSS Variables

:root {
  /* Bahia Palace — ihatecolors */
  --color-bg: #8E5C3A;
  --color-accent: #E8C878;
  --color-secondary: #8EA05C;
  --color-text: #2E1406;
}

Web Design Tip

Use #8E5C3A as the page background and #E8C878 for buttons and large UI — they measure 3.46:1, which clears the 3:1 UI threshold but not 4.5:1, so keep small text out of this pair.

Accessibility Note

#2E1406 on #8E5C3A measures 3.07:1 — enough for large text and UI components (3:1) but below the 4.5:1 needed for body copy.

Bahia Palace Palette — Frequently Asked Questions

What are the hex codes in the Bahia Palace color palette?

The Bahia Palace palette contains #8E5C3A, #E8C878, #8EA05C, #2E1406. Click any swatch on this page to copy its value, or export all four at once as CSS variables, Tailwind config, SCSS or a Figma-ready list.

Is the Bahia Palace color palette accessible (WCAG)?

Yes. #2E1406 on #E8C878 reaches 10.63:1, which passes WCAG AAA for normal text (7:1) as well as AA and the 3:1 UI threshold — use it for body copy and controls. The full contrast matrix above shows the exact score for every color-on-color pair in this palette.

What colors go well with the Bahia Palace palette?

Beyond its own four colors, #7898E8, #CBE080, #EFEDEB extend it naturally: the complementary hue for high-energy accents, an analogous neighbor for calm transitions, and a tinted neutral for surfaces. All three are computed from this palette's hues on the color wheel.

What mood does the Bahia Palace palette create?

Bahia Palace reads as palace, gilt, courtyards. Saturated orange drives the personality, grounded by gently saturated orange — a combination that works best when the mid-tone base gets most of the canvas.

Can I use the Bahia Palace color palette commercially?

Yes. Individual color values can't be copyrighted, so the Bahia Palace palette is free for personal, client and commercial work — websites, branding, apps, print and social content, with no attribution required.

How do I add the Bahia Palace palette to Tailwind or CSS?

Use the export panel on this page: CSS variables, a Tailwind config block, SCSS variables, or a Figma copy list are generated from Bahia Palace's exact values, including the tint and shade ramps shown above.

Similar Palettes

Live Preview
Generate Similar ✦