HSL(271, 45%, 53%)
Indigo — Indigo color
Adjust Color
Color Information
Color Name
Indigo
Color Family
Indigo
Warm / Cool
🔵 Cool
Temperature
6500K
CSS Class
bg-[hsl(271,45%,53%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(271, 45%, 53%) | color: hsl(271, 45%, 53%) | |
| HEX | #8951BD | color: #8951BD | |
| RGB | rgb(137, 81, 189) | color: rgb(137, 81, 189) | |
| CMYK | cmyk(28%, 57%, 0%, 26%) | — | |
| HSV | hsv(271, 57%, 74%) | — | |
| HWB | hwb(271 32% 26%) | color: hwb(271 32% 26%) | |
| OKLCH | oklch(0.5486 0.1668 305.52) | color: oklch(0.5486 0.1668 305.52) | |
| Lab | lab(45.47 44.1 -48.14) | color: lab(45.47 44.1 -48.14) | |
| LCH | lch(45.47 65.29 312.49) | color: lch(45.47 65.29 312.49) |
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)
#7170A3 — rgb(113, 112, 163)
Deuteranopia (Green-blind)
#74789D — rgb(116, 120, 157)
Tritanopia (Blue-blind)
#868E8A — rgb(134, 142, 138)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(271, 45%, 53%);
text
color: hsl(271, 45%, 53%);
border
border: 2px solid hsl(271, 45%, 53%);
gradient light
background: linear-gradient(to right, hsl(271, 45%, 73%), hsl(271, 45%, 53%));
gradient dark
background: linear-gradient(to right, hsl(271, 45%, 53%), hsl(271, 45%, 33%))
hex
background-color: #8951BD;
tailwind
bg-[hsl(271,45%,53%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(271, 45%, 53%, 0.4);
css variable
--color-primary: hsl(271, 45%, 53%);
Related Colors
Use Cases for Indigo
Frequently Asked Questions
What are all the color codes for HSL(271, 45%, 53%)?
HEX: #8951BD | RGB: rgb(137, 81, 189) | CMYK: 28%, 57%, 0%, 26% | HSV: 271°, 57%, 74%. Copy any format from the conversion table above.
What colors go well with #8951BD?
The complementary color is HSL(91, 45%, 53%). 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, 45%, 53%) in CSS?
As HSL: color: hsl(271, 45%, 53%); — As HEX: color: #8951BD; — As RGB: color: rgb(137, 81, 189); — Tailwind CSS: bg-[hsl(271,45%,53%)] — CSS variable: --color-primary: hsl(271, 45%, 53%);