FLUTTER ECOSYSTEM

hsluv

Dart port of HSLuv, a human-friendly alternative to HSL based on human experiments.

hsluv cover
Latest version
1.1.3
30-day downloads
2.1K
Likes
11
Pub points
140

Package Overview

Selection guidance generated from public package information. For reference only.

Overview

HSLuv is a Dart implementation of the HSLuv color space, designed as a more intuitive and perceptually uniform alternative to traditional HSL. Based on human vision experiments, it improves color selection by ensuring consistent brightness and saturation across hues. This package enables developers to convert between RGB and HSLuv color models with accurate, human-centered results. Ideal for applications requiring accessible, visually balanced color schemes, such as design tools, UI frameworks, and accessibility-focused apps.

Use cases
  • Creating accessible color palettes
  • Designing user interfaces with perceptual consistency
  • Implementing color pickers with improved hue distribution
  • Enhancing color contrast in accessibility features
  • Generating harmonious color themes
Key features
  • Perceptually uniform color transitions
  • Improved brightness and saturation consistency
  • Human-centered color model based on experiments
  • Bidirectional RGB ↔ HSLuv conversion
  • Supports all major platforms
Suitable for
  • UI/UX designers seeking better color accuracy
  • Developers building color picker tools
  • Apps focused on accessibility and visual clarity
  • Creative coding and generative art projects
  • Cross-platform applications needing consistent color rendering
Considerations
  • May require learning curve for those used to HSL
  • Limited documentation compared to standard color models
  • Performance impact in high-frequency color operations
  • Not suitable for legacy systems relying on HSL
  • Best used in conjunction with color contrast validation tools
Supported platformsAndroidiOSWebmacOSWindowsLinux

Install package

flutter pub add hsluv

Categories

Source repository

Related projects