More Info
KPOP Image Download
  • Top University
  • Top Anime
  • Home Design
  • Top Legend



  1. ENSIKLOPEDIA
  2. Templat:Greater color contrast ratio - Wikipedia bahasa Indonesia, ensiklopedia bebas
Templat:Greater color contrast ratio - Wikipedia bahasa Indonesia, ensiklopedia bebas

Templat:Greater color contrast ratio

  • العربية
  • الدارجة
  • অসমীয়া
  • Asturianu
  • Авар
  • Azərbaycanca
  • تۆرکجه
  • Basa Bali
  • Беларуская (тарашкевіца)
  • Български
  • भोजपुरी
  • Bamanankan
  • বাংলা
  • Bosanski
  • Basa Ugi
  • Буряад
  • Català
  • Chavacano de Zamboanga
  • 閩東語 / Mìng-dĕ̤ng-ngṳ̄
  • کوردی
  • Čeština
  • Dansk
  • Ελληνικά
  • English
  • Esperanto
  • Español
  • Eesti
  • فارسی
  • Suomi
  • Føroyskt
  • Gaeilge
  • Hausa
  • Hrvatski
  • Հայերեն
  • Igbo
  • Íslenska
  • Italiano
  • 日本語
  • Jawa
  • ქართული
  • Taqbaylit
  • Kumoring
  • 한국어
  • Ladin
  • मैथिली
  • Македонски
  • മലയാളം
  • Монгол
  • Bahasa Melayu
  • Malti
  • नेपाली
  • Nederlands
  • Chi-Chewa
  • ਪੰਜਾਬੀ
  • Papiamentu
  • Português
  • Руски
  • Русский
  • Scots
  • Srpskohrvatski / српскохрватски
  • සිංහල
  • Simple English
  • Slovenčina
  • Slovenščina
  • Anarâškielâ
  • ChiShona
  • Soomaaliga
  • Shqip
  • Српски / srpski
  • Sunda
  • Svenska
  • தமிழ்
  • తెలుగు
  • ไทย
  • Tagalog
  • Türkçe
  • Українська
  • اردو
  • Oʻzbekcha / ўзбекча
  • Tiếng Việt
  • 中文
  • 閩南語 / Bân-lâm-gú
  • 粵語
  • IsiZulu
Sunting pranala
  • Templat
  • Pembicaraan
  • Baca
  • Sunting sumber
  • Lihat riwayat
Perkakas
Tindakan
  • Baca
  • Sunting sumber
  • Lihat riwayat
Umum
  • Pranala balik
  • Perubahan terkait
  • Pranala permanen
  • Informasi halaman
  • Lihat URL pendek
  • Unduh kode QR
Cetak/ekspor
  • Unduh sebagai PDF
  • Versi cetak
Dalam proyek lain
  • Meta-Wiki
  • Butir di Wikidata
Tampilan
Dari Wikipedia bahasa Indonesia, ensiklopedia bebas
Dokumentasi templat[lihat] [sunting] [riwayat] [segarkan]

This template determines the pair of colors with the larger contrast ratio: color1/color2 or color1/color3. This is useful for selecting a foreground/background color pair. For accessibility, WCAG 2.0 AA guidelines require a contrast ratio of 3 or larger for large text, and 4.5 or larger for normal sized text. When used in the default mode, with color2 and color3 equal to white and black, the selected color pair will always have a contrast ratio greater than 4.58.

Examples

[sunting sumber]
  • <span style="background:navy; color:{{Greater color contrast ratio|navy|white|black}}">Navy</span> → Navy
  • <span style="background:red; color:{{Greater color contrast ratio|red|white|black}}">Red</span> → Red
  • <span style="background:white; color:{{Greater color contrast ratio|white|white|black}}">White</span> → White
  • <span style="background:black; color:{{Greater color contrast ratio|black|white|black}}">Red</span> → Black
  • <span style="background:#005500; color:{{Greater color contrast ratio|#005500|#FFFFFF|#000000}}">#005500</span> → #005500
  • <span style="background:#005500; color:#{{Greater color contrast ratio|005500|FFFFFF|000000}}">005500</span> → 005500
  • <span style="background:#CC5500; color:#{{Greater color contrast ratio|CC5500|FFFFFF|000000}}">CC5500</span> → CC5500
  • <span style="background:#CC5500; color:#{{Greater color contrast ratio|CC5500|FFFFFF|000000|bias=1}}">CC5500</span> → CC5500

Optional parameters

[sunting sumber]

The bias parameter should be used with caution to ensure accessibility. As stated above, when used without a bias, and with color2 and color3 equal to white and black, the selected color pair will always have a contrast ratio greater than 4.58. A bias of 1.25, reduces the possible minimum to 4.0, which may not meet accessibility standards.

Dokumentasi di atas ditransklusikan dari Templat:Greater color contrast ratio/doc. (sunting | riwayat)
Penyunting dapat melakukan uji coba pada halaman bak pasir (buat | cermin) dan kasus uji (buat) templat ini.
Mohon tambahkan kategori pada subhalaman /doc. Subhalaman templat ini.
Diperoleh dari "https://id.wikipedia.org/w/index.php?title=Templat:Greater_color_contrast_ratio&oldid=13996837"
Kategori:
  • Color conversion templates

Best Rank
More Recommended Articles