HSL(278, 43%, 28%)
Indigo — Indigo color
Adjust Color
Color Information
Color Name
Indigo
Color Family
Indigo
Warm / Cool
🔵 Cool
Temperature
6500K
CSS Class
bg-[hsl(278,43%,28%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(278, 43%, 28%) | color: hsl(278, 43%, 28%) | |
| HEX | #502966 | color: #502966 | |
| RGB | rgb(80, 41, 102) | color: rgb(80, 41, 102) | |
| CMYK | cmyk(22%, 60%, 0%, 60%) | — | |
| HSV | hsv(278, 60%, 40%) | — | |
| HWB | hwb(278 16% 60%) | color: hwb(278 16% 60%) | |
| OKLCH | oklch(0.3617 0.1081 311.7) | color: oklch(0.3617 0.1081 311.7) | |
| Lab | lab(24.48 29.96 -28.8) | color: lab(24.48 29.96 -28.8) | |
| LCH | lch(24.48 41.56 316.13) | color: lch(24.48 41.56 316.13) |
Color Theory
Accessibility (WCAG)
White text on color
Black text on color
Colored text
Contrast Ratios
AA Normal (4.5:1)
AA Large (3:1)
AAA Normal (7:1)
Best text on this color: white
Color Blindness Simulation
Protanopia (Red-blind)
#3F3F57 — rgb(63, 63, 87)
Deuteranopia (Green-blind)
#414454 — rgb(65, 68, 84)
Tritanopia (Blue-blind)
#4E4C49 — rgb(78, 76, 73)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(278, 43%, 28%);
text
color: hsl(278, 43%, 28%);
border
border: 2px solid hsl(278, 43%, 28%);
gradient light
background: linear-gradient(to right, hsl(278, 43%, 48%), hsl(278, 43%, 28%));
gradient dark
background: linear-gradient(to right, hsl(278, 43%, 28%), hsl(278, 43%, 8%))
hex
background-color: #502966;
tailwind
bg-[hsl(278,43%,28%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(278, 43%, 28%, 0.4);
css variable
--color-primary: hsl(278, 43%, 28%);
Related Colors
Use Cases for Indigo
Frequently Asked Questions
What are all the color codes for HSL(278, 43%, 28%)?
HEX: #502966 | RGB: rgb(80, 41, 102) | CMYK: 22%, 60%, 0%, 60% | HSV: 278°, 60%, 40%. Copy any format from the conversion table above.
What colors go well with #502966?
The complementary color is HSL(98, 43%, 28%). For a triadic harmony, use hues 278°, 38°, and 158°. For analogous combinations, try hues 248° and 308°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(278, 43%, 28%) in CSS?
As HSL: color: hsl(278, 43%, 28%); — As HEX: color: #502966; — As RGB: color: rgb(80, 41, 102); — Tailwind CSS: bg-[hsl(278,43%,28%)] — CSS variable: --color-primary: hsl(278, 43%, 28%);