HSL(271, 41%, 35%)
Indigo — Indigo color
Adjust Color
Color Information
Color Name
Indigo
Color Family
Indigo
Warm / Cool
🔵 Cool
Temperature
6500K
CSS Class
bg-[hsl(271,41%,35%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(271, 41%, 35%) | color: hsl(271, 41%, 35%) | |
| HEX | #5A357E | color: #5A357E | |
| RGB | rgb(90, 53, 126) | color: rgb(90, 53, 126) | |
| CMYK | cmyk(29%, 58%, 0%, 51%) | — | |
| HSV | hsv(270, 58%, 49%) | — | |
| HWB | hwb(270 21% 51%) | color: hwb(270 21% 51%) | |
| OKLCH | oklch(0.4098 0.1214 305.04) | color: oklch(0.4098 0.1214 305.04) | |
| Lab | lab(29.98 31.85 -35.26) | color: lab(29.98 31.85 -35.26) | |
| LCH | lch(29.98 47.52 312.09) | color: lch(29.98 47.52 312.09) |
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)
#4A4A6C — rgb(74, 74, 108)
Deuteranopia (Green-blind)
#4C4F68 — rgb(76, 79, 104)
Tritanopia (Blue-blind)
#585E5B — rgb(88, 94, 91)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(271, 41%, 35%);
text
color: hsl(271, 41%, 35%);
border
border: 2px solid hsl(271, 41%, 35%);
gradient light
background: linear-gradient(to right, hsl(271, 41%, 55%), hsl(271, 41%, 35%));
gradient dark
background: linear-gradient(to right, hsl(271, 41%, 35%), hsl(271, 41%, 15%))
hex
background-color: #5A357E;
tailwind
bg-[hsl(271,41%,35%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(271, 41%, 35%, 0.4);
css variable
--color-primary: hsl(271, 41%, 35%);
Related Colors
Use Cases for Indigo
Frequently Asked Questions
What are all the color codes for HSL(271, 41%, 35%)?
HEX: #5A357E | RGB: rgb(90, 53, 126) | CMYK: 29%, 58%, 0%, 51% | HSV: 270°, 58%, 49%. Copy any format from the conversion table above.
What colors go well with #5A357E?
The complementary color is HSL(91, 41%, 35%). For a triadic harmony, use hues 271°, 31°, and 151°. For analogous combinations, try hues 241° and 301°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(271, 41%, 35%) in CSS?
As HSL: color: hsl(271, 41%, 35%); — As HEX: color: #5A357E; — As RGB: color: rgb(90, 53, 126); — Tailwind CSS: bg-[hsl(271,41%,35%)] — CSS variable: --color-primary: hsl(271, 41%, 35%);