HSL(276, 77%, 31%)
Indigo — Indigo color
Adjust Color
Color Information
Color Name
Indigo
Color Family
Indigo
Warm / Cool
🔵 Cool
Temperature
6500K
CSS Class
bg-[hsl(276,77%,31%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(276, 77%, 31%) | color: hsl(276, 77%, 31%) | |
| HEX | #5B128C | color: #5B128C | |
| RGB | rgb(91, 18, 140) | color: rgb(91, 18, 140) | |
| CMYK | cmyk(35%, 87%, 0%, 45%) | — | |
| HSV | hsv(276, 87%, 55%) | — | |
| HWB | hwb(276 7% 45%) | color: hwb(276 7% 45%) | |
| OKLCH | oklch(0.3808 0.1807 305.85) | color: oklch(0.3808 0.1807 305.85) | |
| Lab | lab(25.41 51.59 -51.39) | color: lab(25.41 51.59 -51.39) | |
| LCH | lch(25.41 72.82 315.11) | color: lch(25.41 72.82 315.11) |
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)
#3B3B6E — rgb(59, 59, 110)
Deuteranopia (Green-blind)
#404567 — rgb(64, 69, 103)
Tritanopia (Blue-blind)
#575752 — rgb(87, 87, 82)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(276, 77%, 31%);
text
color: hsl(276, 77%, 31%);
border
border: 2px solid hsl(276, 77%, 31%);
gradient light
background: linear-gradient(to right, hsl(276, 77%, 51%), hsl(276, 77%, 31%));
gradient dark
background: linear-gradient(to right, hsl(276, 77%, 31%), hsl(276, 77%, 11%))
hex
background-color: #5B128C;
tailwind
bg-[hsl(276,77%,31%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(276, 77%, 31%, 0.4);
css variable
--color-primary: hsl(276, 77%, 31%);
Related Colors
Use Cases for Indigo
Frequently Asked Questions
What are all the color codes for HSL(276, 77%, 31%)?
HEX: #5B128C | RGB: rgb(91, 18, 140) | CMYK: 35%, 87%, 0%, 45% | HSV: 276°, 87%, 55%. Copy any format from the conversion table above.
What colors go well with #5B128C?
The complementary color is HSL(96, 77%, 31%). For a triadic harmony, use hues 276°, 36°, and 156°. For analogous combinations, try hues 246° and 306°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(276, 77%, 31%) in CSS?
As HSL: color: hsl(276, 77%, 31%); — As HEX: color: #5B128C; — As RGB: color: rgb(91, 18, 140); — Tailwind CSS: bg-[hsl(276,77%,31%)] — CSS variable: --color-primary: hsl(276, 77%, 31%);