This template returns a hex code for the colors of Japanese rail services and rapid transit lines.

In order to call a line's color, the code {{Ja-rail-color|service}} is used (where service is replaced by the appropriate abbreviation for the service or line.

Adding # as the optional second parameter will suppress the normally-included preceding # symbol (required for some templates).

Operator Parameter Color
Line
JR Central CF #327198 Chūō Main Line
CB #477543 Gotemba Line
CD #6FA3D7 Iida Line
CJ #16B68F Kansai Main Line
CC #773C97 Minobu Line
CI #C8BA45 Taita Line
CG #9E1813 Takayama Main Line
CE #8C5A38 Taketoyo Line
CA #F6861F Tōkaidō Main Line
JR East JC #FF4500 Chūō Main Line
JB #FFD700 Chūō–Sōbu Line
JE #DC143C Keiyō Line
JJ #3CB371 Jōban Line
JL #808080 Jōban Line (local)
JK #00BFFF Keihin-Tōhoku Line
JA #2E8B57 Saikyō Line
JM #FF4500 Musashino Line
JN #FFD700 Nambu Line
JS #FF0000 Shōnan-Shinjuku Line
JT #FFA500 Tōkaidō Main Line
JI #FFD700 Tsurumi Line
JH #9ACD32 Yokohama Line
JU #FFA500 Utsunomiya Line
JY #9ACD32 Yamanote Line
JO #0070B9 Yokosuka Line
JR Hokkaido HA #E09C42 Sapporo—Asahikawa—Abashiri
HAP #0098D8 Chitose Line (Airport Branch)
HB #EB848D [[|]]
HH #487CBC [[|]]
HK|H #7FBE41 [[|]]
HS|H #E44550 Furano Line
HT #994A95 [[|]]
HW #8A483B Sōya Main Line
JR Shikoku SD #E25885 Dosan Line (Tadotsu–Kōchi)
SK|S #E25885 Dosan Line (Kōchi–Kubokawa)
ST|S #6CC629 Kōtoku Line
SM #00B5A7 Mugi Line
SN #822151 Naruto Line
SB #2a6482 Tokushima Line
SU #F9AA00 Uchiko Line
SG|S #008C4F Yodo Line
SS|S #91A0CA Yosan Line (Old Main Line)
SY|S #F9AA00 Yosan Line
Keio Corporation KO #E3379F Keiō Line
IN #1A407B Inokashira Line
Keisei Electric Railway KS #005AAA Keisei Main Line
KS|N #FF8620 Narita Airport Line
Odakyu Electric Railway OE #2683CE Enoshima Line
OH #2683CE Odawara Line
OH|H #E8532E Hakone Tozan Line
OT #2683CE Tama Line
Osaka Metro MC #019A66 Chūō Line (Osaka)
MI #EE7B1A Imazatosuji Line
MM #E5171F Midōsuji Line
MN #A9CC51 Nagahori Tsurumi-ryokuchi Line
MP #00A0DE Nankō Port Town Line
MK #814721 Sakaisuji Line
MS #E44D93 Sennichimae Line
MT #522886 Tanimachi Line
MY #0078BE Yotsubashi Line
Seibu Railway SI #ED772D Ikebukuro Line
SK #34B559 Kokubunji Line
SS #00A6BF Shinjuku Line
ST #FAAA27 Tamako Line
SW #ED772D Tamagawa Line
SY #EF473D Yamaguchi Line
Tobu Railway TI #DC143C Isesaki Line
TN #FFA500 Nikkō Line
TD #00BFFF Noda Line
TS #005AAA Skytree Line
TJ #004098 Tōjō Line
Toei Subway A #EC6E65 Asakusa Line
I #006CB6 Mita Line
E #CE045B Ōedo Line
S #B0C124 Shinjuku Line
Tokyo Metro C #00BB85 Chiyoda Line
F #9C5E31 Fukutoshin Line
G #FF9500 Ginza Line
Z #8F76D6 Hanzōmon Line
H #B5B5AC Hibiya Line
M and Mb #F62E36 Marunouchi Line
N #00AC9B Namboku Line
T #009BBF Tozai Line
Y #C1A470 Yūrakuchō Line
Tokyu Corporation DT #20A288 Den-en-Toshi Line
IK #EE86A7 Ikegami Line
KD #0068B7 Kodomonokuni Line
MG #009CD2 Meguro Line
MM #E5171F Minatomirai Line
OM #F18C43 Oimachi Line
SG #FCC70D Setagaya Line
SH #890d84 Shin-Yokohama Line
TM #AE0378 Tamagawa Line
TY #DA0442 Toyoko Line
Other HK #34B580 Hankyu Railway
HS #00BFFF Hokusō Line
KK #32CAE2 Keikyu Corporation
SR|A #345CAA Saitama Rapid Railway Line
SR #008459 Shibayama Railway
SL #FF69B4 Shin-Keisei Line
MO #000080 Tokyo Monorail
TR #0AAA3C Tōyō Rapid Railway Line
U #0065A6 Yurikamome
WK #6D0023 Watarase Keikoku Line
Operator Parameter Color
Line
Code Result
{{color|{{Ja-rail-color|A}}|■}} Toei Asakusa Line Toei Asakusa Line
{{RouteBox|Narita Sky Access Line|Keisei Narita Airport Line|{{Ja-rail-color|KS|N}}|black}}  Narita Sky Access Line 
{{JARC|Z}} #8F76D6
{{JARC|Z|#}} 8F76D6


"https://si.wikipedia.org/w/index.php?title=සැකිල්ල:Ja-rail-color/doc&oldid=573337" වෙතින් සම්ප්‍රවේශනය කෙරිණි