HSL(281, 94%, 40%)
Indigo — Indigo color
Adjust Color
Color Information
Color Name
Indigo
Color Family
Indigo
Warm / Cool
🔵 Cool
Temperature
6500K
CSS Class
bg-[hsl(281,94%,40%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(281, 94%, 40%) | color: hsl(281, 94%, 40%) | |
| HEX | #8906C6 | color: #8906C6 | |
| RGB | rgb(137, 6, 198) | color: rgb(137, 6, 198) | |
| CMYK | cmyk(31%, 97%, 0%, 22%) | — | |
| HSV | hsv(281, 97%, 78%) | — | |
| HWB | hwb(281 2% 22%) | color: hwb(281 2% 22%) | |
| OKLCH | oklch(0.4903 0.2463 309.09) | color: oklch(0.4903 0.2463 309.09) | |
| Lab | lab(36.98 71.85 -67.13) | color: lab(36.98 71.85 -67.13) | |
| LCH | lch(36.98 98.33 316.95) | color: lch(36.98 98.33 316.95) |
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)
#504F98 — rgb(80, 79, 152)
Deuteranopia (Green-blind)
#58628C — rgb(88, 98, 140)
Tritanopia (Blue-blind)
#82736B — rgb(130, 115, 107)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(281, 94%, 40%);
text
color: hsl(281, 94%, 40%);
border
border: 2px solid hsl(281, 94%, 40%);
gradient light
background: linear-gradient(to right, hsl(281, 94%, 60%), hsl(281, 94%, 40%));
gradient dark
background: linear-gradient(to right, hsl(281, 94%, 40%), hsl(281, 94%, 20%))
hex
background-color: #8906C6;
tailwind
bg-[hsl(281,94%,40%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(281, 94%, 40%, 0.4);
css variable
--color-primary: hsl(281, 94%, 40%);
Related Colors
Use Cases for Indigo
Frequently Asked Questions
What are all the color codes for HSL(281, 94%, 40%)?
HEX: #8906C6 | RGB: rgb(137, 6, 198) | CMYK: 31%, 97%, 0%, 22% | HSV: 281°, 97%, 78%. Copy any format from the conversion table above.
What colors go well with #8906C6?
The complementary color is HSL(101, 94%, 40%). 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, 94%, 40%) in CSS?
As HSL: color: hsl(281, 94%, 40%); — As HEX: color: #8906C6; — As RGB: color: rgb(137, 6, 198); — Tailwind CSS: bg-[hsl(281,94%,40%)] — CSS variable: --color-primary: hsl(281, 94%, 40%);