HSL(271, 45%, 42%)
Indigo — Indigo color
Adjust Color
Color Information
Color Name
Indigo
Color Family
Indigo
Warm / Cool
🔵 Cool
Temperature
6500K
CSS Class
bg-[hsl(271,45%,42%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(271, 45%, 42%) | color: hsl(271, 45%, 42%) | |
| HEX | #6D3B9B | color: #6D3B9B | |
| RGB | rgb(109, 59, 155) | color: rgb(109, 59, 155) | |
| CMYK | cmyk(30%, 62%, 0%, 39%) | — | |
| HSV | hsv(271, 62%, 61%) | — | |
| HWB | hwb(271 23% 39%) | color: hwb(271 23% 39%) | |
| OKLCH | oklch(0.4614 0.1527 305.17) | color: oklch(0.4614 0.1527 305.17) | |
| Lab | lab(35.49 40.76 -44.15) | color: lab(35.49 40.76 -44.15) | |
| LCH | lch(35.49 60.09 312.71) | color: lch(35.49 60.09 312.71) |
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)
#575784 — rgb(87, 87, 132)
Deuteranopia (Green-blind)
#5A5E7E — rgb(90, 94, 126)
Tritanopia (Blue-blind)
#6B716D — rgb(107, 113, 109)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(271, 45%, 42%);
text
color: hsl(271, 45%, 42%);
border
border: 2px solid hsl(271, 45%, 42%);
gradient light
background: linear-gradient(to right, hsl(271, 45%, 62%), hsl(271, 45%, 42%));
gradient dark
background: linear-gradient(to right, hsl(271, 45%, 42%), hsl(271, 45%, 22%))
hex
background-color: #6D3B9B;
tailwind
bg-[hsl(271,45%,42%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(271, 45%, 42%, 0.4);
css variable
--color-primary: hsl(271, 45%, 42%);
Related Colors
Use Cases for Indigo
Frequently Asked Questions
What are all the color codes for HSL(271, 45%, 42%)?
HEX: #6D3B9B | RGB: rgb(109, 59, 155) | CMYK: 30%, 62%, 0%, 39% | HSV: 271°, 62%, 61%. Copy any format from the conversion table above.
What colors go well with #6D3B9B?
The complementary color is HSL(91, 45%, 42%). 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%, 42%) in CSS?
As HSL: color: hsl(271, 45%, 42%); — As HEX: color: #6D3B9B; — As RGB: color: rgb(109, 59, 155); — Tailwind CSS: bg-[hsl(271,45%,42%)] — CSS variable: --color-primary: hsl(271, 45%, 42%);