HSL(266, 76%, 37%)
Indigo — Indigo color
Adjust Color
Color Information
Color Name
Indigo
Color Family
Indigo
Warm / Cool
🔵 Cool
Temperature
9000K
CSS Class
bg-[hsl(266,76%,37%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(266, 76%, 37%) | color: hsl(266, 76%, 37%) | |
| HEX | #5517A6 | color: #5517A6 | |
| RGB | rgb(85, 23, 166) | color: rgb(85, 23, 166) | |
| CMYK | cmyk(49%, 86%, 0%, 35%) | — | |
| HSV | hsv(266, 86%, 65%) | — | |
| HWB | hwb(266 9% 35%) | color: hwb(266 9% 35%) | |
| OKLCH | oklch(0.4014 0.2016 294.6) | color: oklch(0.4014 0.2016 294.6) | |
| Lab | lab(27.56 55.39 -63.84) | color: lab(27.56 55.39 -63.84) | |
| LCH | lch(27.56 84.52 310.95) | color: lch(27.56 84.52 310.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)
#3A3A83 — rgb(58, 58, 131)
Deuteranopia (Green-blind)
#3E427B — rgb(62, 66, 123)
Tritanopia (Blue-blind)
#526862 — rgb(82, 104, 98)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(266, 76%, 37%);
text
color: hsl(266, 76%, 37%);
border
border: 2px solid hsl(266, 76%, 37%);
gradient light
background: linear-gradient(to right, hsl(266, 76%, 57%), hsl(266, 76%, 37%));
gradient dark
background: linear-gradient(to right, hsl(266, 76%, 37%), hsl(266, 76%, 17%))
hex
background-color: #5517A6;
tailwind
bg-[hsl(266,76%,37%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(266, 76%, 37%, 0.4);
css variable
--color-primary: hsl(266, 76%, 37%);
Related Colors
Use Cases for Indigo
Frequently Asked Questions
What are all the color codes for HSL(266, 76%, 37%)?
HEX: #5517A6 | RGB: rgb(85, 23, 166) | CMYK: 49%, 86%, 0%, 35% | HSV: 266°, 86%, 65%. Copy any format from the conversion table above.
What colors go well with #5517A6?
The complementary color is HSL(86, 76%, 37%). For a triadic harmony, use hues 266°, 26°, and 146°. For analogous combinations, try hues 236° and 296°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(266, 76%, 37%) in CSS?
As HSL: color: hsl(266, 76%, 37%); — As HEX: color: #5517A6; — As RGB: color: rgb(85, 23, 166); — Tailwind CSS: bg-[hsl(266,76%,37%)] — CSS variable: --color-primary: hsl(266, 76%, 37%);