Railway Color Palette
#131415 · #B561F6 · #FFFFFF · #888888
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% |
Railway 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 Railway palette — click any swatch to copy its hex.
Railway 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 |
|---|---|---|---|---|
| #FFFFFF on #131415 |
Aa Sample Text
| 18.44:1 | AAA | Body text, headings, UI |
| #131415 on #FFFFFF |
Aa Sample Text
| 18.44:1 | AAA | Body text, headings, UI |
| #B561F6 on #131415 |
Aa Sample Text
| 5.27:1 | AA | Body text, UI |
| #131415 on #B561F6 |
Aa Sample Text
| 5.27:1 | AA | Body text, UI |
| #888888 on #131415 |
Aa Sample Text
| 5.20:1 | AA | Body text, UI |
| #131415 on #888888 |
Aa Sample Text
| 5.20:1 | AA | Body text, UI |
| #888888 on #FFFFFF |
Aa Sample Text
| 3.54:1 | Fail | Large headings, UI components |
| #FFFFFF on #888888 |
Aa Sample Text
| 3.54:1 | Fail | Large headings, UI components |
| #FFFFFF on #B561F6 |
Aa Sample Text
| 3.50:1 | Fail | Large headings, UI components |
| #B561F6 on #FFFFFF |
Aa Sample Text
| 3.50:1 | Fail | Large headings, UI components |
| #888888 on #B561F6 |
Aa Sample Text
| 1.01:1 | Fail | Decorative use only |
| #B561F6 on #888888 |
Aa Sample Text
| 1.01:1 | Fail | Decorative use only |
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
Colors That Pair Well With Railway
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.
directly opposite #B561F6 on the wheel — the strongest accent for CTAs and highlights when you need maximum energy
30° beside #B561F6 — a calm secondary that extends the palette without adding tension
a paper-white carrying the palette's own hue — perfect for surfaces and dividers
Using Railway Without Breaking Accessibility
- Use #B561F6 for buttons and links — it scores 5.3:1 against the #131415 background (above the 3:1 UI-components threshold).
- Set body text in #888888 — 5.2:1 against #131415 passes WCAG AA (AA) for long-form reading.
- Don't use #FFFFFF behind body text — this light tone works better for surfaces, badges and dividers than for reading areas.
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.
Railway Palette — Frequently Asked Questions
What are the hex codes in the Railway color palette?
The Railway palette contains #131415, #B561F6, #FFFFFF, #888888. 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 Railway color palette accessible (WCAG)?
Yes for its strongest pairings: #FFFFFF on #131415 reaches 18.4:1 (AAA). For body text always keep a 4.5:1 ratio and for large UI elements 3:1 — the full contrast matrix above shows the exact score for every color-on-color combination in this palette.
What colors go well with the Railway palette?
Beyond its own four colors, #A1F660, #ED68E4, #ECEDEE 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 Railway palette create?
Railway reads as dark, bold, developer. Saturated violet drives the personality, grounded by neutral gray — a combination that works best when the deep base gets most of the canvas.
Can I use the Railway color palette commercially?
Yes. Individual color values can't be copyrighted, so the Railway 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 Railway 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 Railway's exact values, including the tint and shade ramps shown above.