HSL(281, 80%, 31%)
Indigo — Indigo color
Adjust Color
Color Information
Color Name
Indigo
Color Family
Indigo
Warm / Cool
🔵 Cool
Temperature
6500K
CSS Class
bg-[hsl(281,80%,31%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(281, 80%, 31%) | color: hsl(281, 80%, 31%) | |
| HEX | #66108E | color: #66108E | |
| RGB | rgb(102, 16, 142) | color: rgb(102, 16, 142) | |
| CMYK | cmyk(28%, 89%, 0%, 44%) | — | |
| HSV | hsv(281, 89%, 56%) | — | |
| HWB | hwb(281 6% 44%) | color: hwb(281 6% 44%) | |
| OKLCH | oklch(0.397 0.1868 310.91) | color: oklch(0.397 0.1868 310.91) | |
| Lab | lab(27.15 54.26 -49.71) | color: lab(27.15 54.26 -49.71) | |
| LCH | lch(27.15 73.59 317.51) | color: lch(27.15 73.59 317.51) |
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)
#414070 — rgb(65, 64, 112)
Deuteranopia (Green-blind)
#464C68 — rgb(70, 76, 104)
Tritanopia (Blue-blind)
#625752 — rgb(98, 87, 82)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(281, 80%, 31%);
text
color: hsl(281, 80%, 31%);
border
border: 2px solid hsl(281, 80%, 31%);
gradient light
background: linear-gradient(to right, hsl(281, 80%, 51%), hsl(281, 80%, 31%));
gradient dark
background: linear-gradient(to right, hsl(281, 80%, 31%), hsl(281, 80%, 11%))
hex
background-color: #66108E;
tailwind
bg-[hsl(281,80%,31%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(281, 80%, 31%, 0.4);
css variable
--color-primary: hsl(281, 80%, 31%);
Related Colors
Use Cases for Indigo
Frequently Asked Questions
What are all the color codes for HSL(281, 80%, 31%)?
HEX: #66108E | RGB: rgb(102, 16, 142) | CMYK: 28%, 89%, 0%, 44% | HSV: 281°, 89%, 56%. Copy any format from the conversion table above.
What colors go well with #66108E?
The complementary color is HSL(101, 80%, 31%). For a triadic harmony, use hues 281°, 41°, and 161°. For analogous combinations, try hues 251° and 311°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(281, 80%, 31%) in CSS?
As HSL: color: hsl(281, 80%, 31%); — As HEX: color: #66108E; — As RGB: color: rgb(102, 16, 142); — Tailwind CSS: bg-[hsl(281,80%,31%)] — CSS variable: --color-primary: hsl(281, 80%, 31%);