HSL(281, 59%, 41%)
Indigo — Indigo color
Adjust Color
Color Information
Color Name
Indigo
Color Family
Indigo
Warm / Cool
🔵 Cool
Temperature
6500K
CSS Class
bg-[hsl(281,59%,41%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(281, 59%, 41%) | color: hsl(281, 59%, 41%) | |
| HEX | #7F2BA6 | color: #7F2BA6 | |
| RGB | rgb(127, 43, 166) | color: rgb(127, 43, 166) | |
| CMYK | cmyk(23%, 74%, 0%, 35%) | — | |
| HSV | hsv(281, 74%, 65%) | — | |
| HWB | hwb(281 17% 35%) | color: hwb(281 17% 35%) | |
| OKLCH | oklch(0.4725 0.1914 312.55) | color: oklch(0.4725 0.1914 312.55) | |
| Lab | lab(35.97 54.9 -49.88) | color: lab(35.97 54.9 -49.88) | |
| LCH | lch(35.97 74.18 317.74) | color: lch(35.97 74.18 317.74) |
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)
#5B5A88 — rgb(91, 90, 136)
Deuteranopia (Green-blind)
#606681 — rgb(96, 102, 129)
Tritanopia (Blue-blind)
#7B716C — rgb(123, 113, 108)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(281, 59%, 41%);
text
color: hsl(281, 59%, 41%);
border
border: 2px solid hsl(281, 59%, 41%);
gradient light
background: linear-gradient(to right, hsl(281, 59%, 61%), hsl(281, 59%, 41%));
gradient dark
background: linear-gradient(to right, hsl(281, 59%, 41%), hsl(281, 59%, 21%))
hex
background-color: #7F2BA6;
tailwind
bg-[hsl(281,59%,41%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(281, 59%, 41%, 0.4);
css variable
--color-primary: hsl(281, 59%, 41%);
Related Colors
Use Cases for Indigo
Frequently Asked Questions
What are all the color codes for HSL(281, 59%, 41%)?
HEX: #7F2BA6 | RGB: rgb(127, 43, 166) | CMYK: 23%, 74%, 0%, 35% | HSV: 281°, 74%, 65%. Copy any format from the conversion table above.
What colors go well with #7F2BA6?
The complementary color is HSL(101, 59%, 41%). 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, 59%, 41%) in CSS?
As HSL: color: hsl(281, 59%, 41%); — As HEX: color: #7F2BA6; — As RGB: color: rgb(127, 43, 166); — Tailwind CSS: bg-[hsl(281,59%,41%)] — CSS variable: --color-primary: hsl(281, 59%, 41%);