HSL(271, 76%, 35%)
Indigo — Indigo color
Adjust Color
Color Information
Color Name
Indigo
Color Family
Indigo
Warm / Cool
🔵 Cool
Temperature
6500K
CSS Class
bg-[hsl(271,76%,35%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(271, 76%, 35%) | color: hsl(271, 76%, 35%) | |
| HEX | #5C159D | color: #5C159D | |
| RGB | rgb(92, 21, 157) | color: rgb(92, 21, 157) | |
| CMYK | cmyk(41%, 87%, 0%, 38%) | — | |
| HSV | hsv(271, 87%, 62%) | — | |
| HWB | hwb(271 8% 38%) | color: hwb(271 8% 38%) | |
| OKLCH | oklch(0.3998 0.1949 300.7) | color: oklch(0.3998 0.1949 300.7) | |
| Lab | lab(27.42 54.75 -58.57) | color: lab(27.42 54.75 -58.57) | |
| LCH | lch(27.42 80.17 313.07) | color: lch(27.42 80.17 313.07) |
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)
#3D3D7C — rgb(61, 61, 124)
Deuteranopia (Green-blind)
#414774 — rgb(65, 71, 116)
Tritanopia (Blue-blind)
#58625C — rgb(88, 98, 92)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(271, 76%, 35%);
text
color: hsl(271, 76%, 35%);
border
border: 2px solid hsl(271, 76%, 35%);
gradient light
background: linear-gradient(to right, hsl(271, 76%, 55%), hsl(271, 76%, 35%));
gradient dark
background: linear-gradient(to right, hsl(271, 76%, 35%), hsl(271, 76%, 15%))
hex
background-color: #5C159D;
tailwind
bg-[hsl(271,76%,35%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(271, 76%, 35%, 0.4);
css variable
--color-primary: hsl(271, 76%, 35%);
Related Colors
Use Cases for Indigo
Frequently Asked Questions
What are all the color codes for HSL(271, 76%, 35%)?
HEX: #5C159D | RGB: rgb(92, 21, 157) | CMYK: 41%, 87%, 0%, 38% | HSV: 271°, 87%, 62%. Copy any format from the conversion table above.
What colors go well with #5C159D?
The complementary color is HSL(91, 76%, 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, 76%, 35%) in CSS?
As HSL: color: hsl(271, 76%, 35%); — As HEX: color: #5C159D; — As RGB: color: rgb(92, 21, 157); — Tailwind CSS: bg-[hsl(271,76%,35%)] — CSS variable: --color-primary: hsl(271, 76%, 35%);