Skip to content
#131415
#B561F6
#FFFFFF
#888888
Background
Text · AA
Text · AAA
Text · AA

Railway Color Palette

#131415 · #B561F6 · #FFFFFF · #888888

AA
WCAG Grade
5.20:1
Contrast Ratio
AI Prompt

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%
Text · AA
Luminance: 25.0%
181, 97, 246 26%, 61%, 0%, 4% 274°, 89%, 67%
Text · AAA
Luminance: 100.0%
255, 255, 255 0%, 0%, 0%, 0% 0°, 0%, 100%
Text · AA
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.

#131415 neutral gray
#B561F6 saturated violet
#FFFFFF neutral gray
#888888 neutral gray

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.49:1 Fail Large headings, UI components
#B561F6 on #FFFFFF
Aa Sample Text
3.49: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

Palette Details

Railway's vibrant purple on near-black signals that deployment infrastructure doesn't have to be boring — bold enough to be memorable, dark enough to be serious.

Color Harmony: Single Accent Hue

Only one color carries hue (274°, violet); the other 3 are near-neutral, so the palette's hierarchy is carried by lightness and contrast rather than by hue.

Hue Wheel

With a single hue, emphasis has to come from contrast and area rather than from hue difference — check the matrix for the specific pair you intend to use.

History & Design Context

Railway launched in 2021 as a developer deployment platform and differentiated through a more expressive visual identity than competitors like Heroku.

Best Design Use Cases

Near-black for all surfaces. Bright violet-purple for brand and interactive elements. White for content. Gray for secondary info.

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

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.

yellow-green

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

magenta

30° beside #B561F6 — 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 Railway Without Breaking Accessibility

  • Use #B561F6 for buttons and links — it scores 5.27:1 against the #131415 background (above the 3:1 UI-components threshold).
  • Set body text in #888888 — 5.20: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, copy the CSS variables below or open the export panel for Tailwind, SCSS and Figma formats.

Option 1: CSS Variables

:root {
  /* Railway — ihatecolors */
  --color-bg: #131415;
  --color-accent: #B561F6;
  --color-secondary: #FFFFFF;
  --color-text: #888888;
}

Web Design Tip

Use #131415 as the page background and #B561F6 for primary buttons — they measure 5.27:1, which clears both the 3:1 UI threshold and the 4.5:1 body-text threshold.

Accessibility Note

Body copy in #888888 on #131415 measures 5.20:1, which passes WCAG AA for normal text but not AAA (7:1).

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. #FFFFFF on #131415 reaches 18.44: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 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.

Live Preview
Generate Similar ✦