HSL(281, 32%, 50%)
Indigo — Indigo color
Adjust Color
Color Information
Color Name
Indigo
Color Family
Indigo
Warm / Cool
🔵 Cool
Temperature
6500K
CSS Class
bg-[hsl(281,32%,50%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(281, 32%, 50%) | color: hsl(281, 32%, 50%) | |
| HEX | #8E57A8 | color: #8E57A8 | |
| RGB | rgb(142, 87, 168) | color: rgb(142, 87, 168) | |
| CMYK | cmyk(15%, 48%, 0%, 34%) | — | |
| HSV | hsv(281, 48%, 66%) | — | |
| HWB | hwb(281 34% 34%) | color: hwb(281 34% 34%) | |
| OKLCH | oklch(0.5513 0.1341 314.05) | color: oklch(0.5513 0.1341 314.05) | |
| Lab | lab(46.17 37.29 -34.69) | color: lab(46.17 37.29 -34.69) | |
| LCH | lch(46.17 50.93 317.07) | color: lch(46.17 50.93 317.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)
#767694 — rgb(118, 118, 148)
Deuteranopia (Green-blind)
#797E90 — rgb(121, 126, 144)
Tritanopia (Blue-blind)
#8B8582 — rgb(139, 133, 130)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(281, 32%, 50%);
text
color: hsl(281, 32%, 50%);
border
border: 2px solid hsl(281, 32%, 50%);
gradient light
background: linear-gradient(to right, hsl(281, 32%, 70%), hsl(281, 32%, 50%));
gradient dark
background: linear-gradient(to right, hsl(281, 32%, 50%), hsl(281, 32%, 30%))
hex
background-color: #8E57A8;
tailwind
bg-[hsl(281,32%,50%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(281, 32%, 50%, 0.4);
css variable
--color-primary: hsl(281, 32%, 50%);
Related Colors
Use Cases for Indigo
Frequently Asked Questions
What are all the color codes for HSL(281, 32%, 50%)?
HEX: #8E57A8 | RGB: rgb(142, 87, 168) | CMYK: 15%, 48%, 0%, 34% | HSV: 281°, 48%, 66%. Copy any format from the conversion table above.
What colors go well with #8E57A8?
The complementary color is HSL(101, 32%, 50%). 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, 32%, 50%) in CSS?
As HSL: color: hsl(281, 32%, 50%); — As HEX: color: #8E57A8; — As RGB: color: rgb(142, 87, 168); — Tailwind CSS: bg-[hsl(281,32%,50%)] — CSS variable: --color-primary: hsl(281, 32%, 50%);