hello@defzone.netLien he
DZ
DefZone.Net

Kien thuc cong nghe & giai tri

Bai vietDia diemAlbum anhGameCua hang
  1. Home
  2. Wiki
Template documentation[view] [edit] [history] [purge]

Usage

[edit]

Converts three 8-bit numbers or three percentages to a "rgb(r,g,b)" value, usable in CSS color properties. This template can be substituted.

Useful for all sorts of color-related nefarious purposes.

Input
  • three parameters, each numeric in the range 0..255 (larger numbers will wrap around)
Output
  • a triplet of two-digit hex numbers

Examples

[edit]
  • {{RGB|0|0|0}} gives rgb(0,0,0)
  • {{subst:RGB|0|0|0}} gives rgb(0,0,0)
  • {{RGB|123|45|67|}} gives rgb(123,45,67)
  • {{subst:RGB|123|45|67}} gives rgb(123,45,67)
  • {{RGB|255|255|255}} gives rgb(255,255,255)
  • {{subst:RGB|255|255|255}} gives rgb(255,255,255)
  • {{RGB|0%|0%|0%}} gives rgb(0%,0%,0%)
  • {{RGB|123%|45%|67%|}} gives rgb(123%,45%,67%)
  • {{RGB|100%|100%|100%}} gives rgb(100%,100%,100%)

See also

[edit]
  • {{Hex3}} for formating as a "#RRGGBB" hex value
  • {{Lighten}}
The above documentation is transcluded from Template:RGB/doc. (edit | history)
Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages.
Add categories to the /doc subpage. Subpages of this template.
DZ
DefZone.Net

Noi chia se kien thuc, huong dan va kham pha cong nghe.

Lien ket nhanh

Trang chủBài viếtWikiCua hangLien he

Lien he

Email: hello@defzone.net
Dien thoai: +84 999 999 999
Dia chi: 123 Duong Cong Nghe, Ha Noi

Dang ky nhan tin

Nhan bai viet va cap nhat moi nhat qua email.

© 2025 DefZone.Net. All rights reserved.
PrivacyTermsSitemap