Railway
Use #131415 as the background. Use #B561F6 as the primary accent. Use #FFFFFF as secondary. Use #888888 as body text. Palette: Railway.
Hex Codes, RGB & CMYK Color Values
Technical breakdown for the Railway 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: 0.7% | 19, 20, 21 | 10%, 5%, 0%, 92% | 210°, 5%, 8% | ||
| Primary Accent Luminance: 25.0% | 181, 97, 246 | 26%, 61%, 0%, 4% | 274°, 89%, 67% | ||
| Secondary Luminance: 100.0% | 255, 255, 255 | 0%, 0%, 0%, 0% | 0°, 0%, 100% | ||
| Body Text Luminance: 24.6% | 136, 136, 136 | 0%, 0%, 0%, 47% | 0°, 0%, 53% |
Color Harmony: Triadic Scheme
The Railway palette is built using a triadic relationship between its hues. This ensures that even with high-contrast accents, the overall scheme feels balanced and intentional.
A triadic palette is often preferred by professional designers because it balances visual interest with cohesion.
History & Design Context
Best Design Use Cases
Industries This Palette Suits
How to Implement the Railway Color Scheme
To use this Railway color palette in your web project, you can copy the following CSS variables or Tailwind CSS configuration. These roles ensure your UI maintains accessibility and visual hierarchy.
Option 1: CSS Variables
:root {
/* {name} Palette - ihatecolors.com */{'
'} --color-bg: {colors[0]};{'
'} --color-primary: {colors[1]};{'
'} --color-secondary: {colors[2]};{'
'} --color-text: {colors[3]};{'
'} {'}'} Web Design Tip
Use #131415 for the main background and #B561F6 for primary buttons. This creates a high-contrast focal point.
Accessibility Note
The contrast ratio between #888888 and #131415 is 5.20:1 (AA). Ensure your body text remains legible.