SwiftUI Color Palette Generator
Generate harmonious color themes for your iOS and iPadOS apps. Export production-ready Theme.swift files with primary, secondary, accent, surface, and background semantics.
import SwiftUI
// Generated Theme Palette for SwiftUI
extension Color {
static let appPrimary = Color(red: 0.933, green: 0.486, blue: 0.169) // #EE7C2B
static let appSecondary = Color(red: 0.788, green: 0.620, blue: 0.114) // #C99E1D
static let appAccent = Color(red: 0.239, green: 0.659, blue: 0.961) // #3DA8F5
static let appSurface = Color(red: 0.176, green: 0.212, blue: 0.325) // #2D3653
static let appBackground = Color(red: 0.141, green: 0.145, blue: 0.094) // #242518
}
struct AppTheme {
static let primary = Color.appPrimary
static let secondary = Color.appSecondary
static let accent = Color.appAccent
static let surface = Color.appSurface
static let background = Color.appBackground
}Principles of Apple Human Interface Color Design
Use Color Sparingly
Apple HIG recommends using one dominant accent color to indicate interactive elements (buttons, links, active tab icons), allowing content to remain the hero.
Semantic Hierarchy
Organizing colors into primary, secondary, and tertiary semantic roles makes it effortless to adapt layouts between light and dark appearance modes.
WCAG 4.5:1 Accessibility
Text elements should always maintain at least a 4.5:1 contrast ratio against background surfaces to pass Apple App Store accessibility inspections.
Build full iPhone apps without touching Xcode
Enjoying this free Color Palette Generator? Thorous turns your natural language prompts into compiled native SwiftUI apps, with real-time iOS simulator streaming and visual on-screen editing.
Native Mac app · macOS 14 Sonoma or later · Apple silicon & Intel