Colours

Explore Luxa CSS's carefully curated, essential-only colour palette for modern interfaces.

Luxa CSS offers a carefully curated color palette optimized for both sRGB and P3 color spaces, designed for modern interfaces.

Neutrals

Provide utility and hierarchy without competing with core and secondary colors.

VariableValue (sRGB)Value (Display P3)
--neutral-01#ffffffcolor(display-p3 1 1 1)
--neutral-02#f8fafccolor(display-p3 0.973 0.98 0.988)
--neutral-03#f1f5f9color(display-p3 0.945 0.961 0.976)
--neutral-04#e2e8f0color(display-p3 0.886 0.91 0.941)
--neutral-05#cbd5e1color(display-p3 0.796 0.835 0.882)
--neutral-06#94a3b8color(display-p3 0.58 0.639 0.722)
--neutral-07#64748bcolor(display-p3 0.392 0.455 0.545)
--neutral-08#475569color(display-p3 0.278 0.333 0.412)
--neutral-09#334155color(display-p3 0.2 0.255 0.333)
--neutral-10#1e293bcolor(display-p3 0.118 0.161 0.231)
--neutral-11#0f172acolor(display-p3 0.059 0.09 0.165)
--neutral-12#020617color(display-p3 0.008 0.024 0.09)

Secondary colours

Communicate semantic meaning and add visual interest.

VariableValue (sRGB)Value (Display P3)
--red#e5484dcolor(display-p3 0.83 0.329 0.324)
--orange#f76b15color(display-p3 0.9 0.45 0.2)
--amber#ffc53dcolor(display-p3 1 0.77 0.26)
--yellow#ffe629color(display-p3 1 0.92 0.22)
--lime#bdee63color(display-p3 0.78 0.928 0.466)
--green#30a46ccolor(display-p3 0.332 0.634 0.442)
--teal#12a594color(display-p3 0.297 0.637 0.581)
--cyan#00a2c7color(display-p3 0.282 0.627 0.765)
--blue#0090ffcolor(display-p3 0.247 0.556 0.969)
--indigo#3e63ddcolor(display-p3 0.276 0.384 0.837)
--purple#8e4ec6color(display-p3 0.523 0.318 0.751)
--pink#d6409fcolor(display-p3 0.775 0.297 0.61)

Common semantic pairings:

  • Error: Red;
  • Warning: Yellow;
  • Success: Green;
  • Information: Blue;
  • Custom states: Purple.

Color spaces

Luxa optimizes for two color spaces:

  1. sRGB: standard color space for most devices;
  2. P3: broader gamut for more vibrant hues on supported devices.
Accessibility considerations
  • Choose colors with sufficient contrast ratios for readability;
  • Use tools like the WebAIM Contrast Checker to verify WCAG compliance;
  • Ensure your color choices are inclusive for users with visual impairments.

Remember: While Luxa provides color scales, it’s your responsibility to use them in an accessible manner.

Getting Help

Need help? Open an issue. I'll be happy to help. 🎈