Colours
Explore Luxa CSS's carefully curated, essential-only colour palette for modern interfaces.
Luxa CSS offers a carefully curated color palette using the OKLCH color space, designed for modern interfaces with perceptually uniform colors.
Neutrals
Provide utility and hierarchy without competing with core and secondary colors.
| Variable | OKLCH Value |
|---|---|
--neutral-01 | oklch(1 0 0) |
--neutral-02 | oklch(0.98 0 0) |
--neutral-03 | oklch(0.96 0 0) |
--neutral-04 | oklch(0.92 0 0) |
--neutral-05 | oklch(0.85 0 0) |
--neutral-06 | oklch(0.65 0 0) |
--neutral-07 | oklch(0.5 0 0) |
--neutral-08 | oklch(0.4 0 0) |
--neutral-09 | oklch(0.3 0 0) |
--neutral-10 | oklch(0.2 0 0) |
--neutral-11 | oklch(0.1 0 0) |
--neutral-12 | oklch(0.05 0 0) |
Secondary colours
Communicate semantic meaning and add visual interest.
| Variable | OKLCH Value |
|---|---|
--red | oklch(0.63 0.19 23) |
--orange | oklch(0.69 0.19 45) |
--amber | oklch(0.85 0.16 84) |
--yellow | oklch(0.92 0.18 101) |
--lime | oklch(0.89 0.17 126) |
--green | oklch(0.64 0.13 158) |
--teal | oklch(0.65 0.11 182) |
--cyan | oklch(0.66 0.12 222) |
--blue | oklch(0.65 0.19 252) |
--indigo | oklch(0.54 0.19 267) |
--purple | oklch(0.56 0.18 306) |
--pink | oklch(0.62 0.21 346) |
Common semantic pairings:
- Error: Red;
- Warning: Yellow;
- Success: Green;
- Information: Blue;
- Custom states: Purple.
Color space
Luxa uses the OKLCH color space, which provides:
- Perceptual uniformity: equal changes in values correspond to equal visual changes;
- Better browser support: widely supported across modern browsers;
- Easier manipulation: adjust lightness, chroma, and hue independently;
- Geometric scale: neutrals follow a geometric progression for consistent visual steps.
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. 🎈