Skip to the text
KDOS
Menu
kdos.dev KDOS from Scratch KDOS 0.2 · 4dd4a10 · 2026-11-30 Contents Index

306.21. kontrast-26.08.2

Colour contrast checker — WCAG contrast ratios for text and background pairs, with saved favourites

26.08.2-1 · GPL-3.0-or-later AND BSD-2-Clause AND BSD-3-Clause AND CC-BY-SA-4.0 AND CC0-1.0 · 0.7 SBU · 612.2 KiB, 12 files · 44_apps, 241 of 422 · ports/core/graphics/kontrast

Homepage: https://apps.kde.org/kontrast/

Kontrast checks whether a text colour and a background colour are far enough apart to read: it shows the WCAG contrast ratio of a pair, suggests random accessible pairs, and keeps favourites. It is a Kirigami application. The favourites live in an SQLite database written through futuresql, an asynchronous layer over Qt SQL’s SQLite driver, with qcoro for its coroutines; both are required by the configure.

Depends on: cmake, ninja, extra-cmake-modules, qt6-qtbase, qt6-qtdeclarative, qt6-qtsvg, kirigami, ki18n, kcoreaddons, kconfig, kcrash, kdoctools, kirigami-addons, futuresql, qcoro.

Required by (1): kde-gear-graphics.

Sources: kontrast-26.08.2.tar.xz (220.0 KiB). Every step kpkg takes applies to this port.

Install: script/chroot/exec.sh bash -c 'source script/phases/44_apps/phase.env && kpkg install kontrast'

build.sh:

cmake -S . -B build -G Ninja \
	-D CMAKE_INSTALL_PREFIX=/usr \
	-D KDE_INSTALL_LIBDIR=lib \
	-D CMAKE_BUILD_TYPE=Release \
	-D KDE_INSTALL_USE_QT_SYS_PATHS=ON \
	-D BUILD_TESTING=OFF \
	-D KF_SKIP_PO_PROCESSING=ON \
	-Wno-dev
cmake --build build
DESTDIR=$PKG cmake --install build

Programs: kontrast.

Directories: /usr/share/doc/HTML/en/kontrast, /usr/share/licenses/kontrast.

The handbook is built through kdoctools, which upstream requires on every platform but Android. The QML imports org.kde.config, which kconfig provides and the configure does not check, so it is named in depends.