HSL(262, 20%, 56%)
Indigo — Indigo color
Adjust Color
Color Information
Color Name
Indigo
Color Family
Indigo
Warm / Cool
🔵 Cool
Temperature
9000K
CSS Class
bg-[hsl(262,20%,56%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(262, 20%, 56%) | color: hsl(262, 20%, 56%) | |
| HEX | #8978A5 | color: #8978A5 | |
| RGB | rgb(137, 120, 165) | color: rgb(137, 120, 165) | |
| CMYK | cmyk(17%, 27%, 0%, 35%) | — | |
| HSV | hsv(263, 27%, 65%) | — | |
| HWB | hwb(263 47% 35%) | color: hwb(263 47% 35%) | |
| OKLCH | oklch(0.6049 0.0697 301.65) | color: oklch(0.6049 0.0697 301.65) | |
| Lab | lab(53.46 15.86 -21.65) | color: lab(53.46 15.86 -21.65) | |
| LCH | lch(53.46 26.84 306.23) | color: lch(53.46 26.84 306.23) |
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: black
Color Blindness Simulation
Protanopia (Red-blind)
#82819A — rgb(130, 129, 154)
Deuteranopia (Green-blind)
#838498 — rgb(131, 132, 152)
Tritanopia (Blue-blind)
#889290 — rgb(136, 146, 144)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(262, 20%, 56%);
text
color: hsl(262, 20%, 56%);
border
border: 2px solid hsl(262, 20%, 56%);
gradient light
background: linear-gradient(to right, hsl(262, 20%, 76%), hsl(262, 20%, 56%));
gradient dark
background: linear-gradient(to right, hsl(262, 20%, 56%), hsl(262, 20%, 36%))
hex
background-color: #8978A5;
tailwind
bg-[hsl(262,20%,56%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(262, 20%, 56%, 0.4);
css variable
--color-primary: hsl(262, 20%, 56%);
Related Colors
Use Cases for Indigo
Frequently Asked Questions
What are all the color codes for HSL(262, 20%, 56%)?
HEX: #8978A5 | RGB: rgb(137, 120, 165) | CMYK: 17%, 27%, 0%, 35% | HSV: 263°, 27%, 65%. Copy any format from the conversion table above.
What colors go well with #8978A5?
The complementary color is HSL(82, 20%, 56%). For a triadic harmony, use hues 262°, 22°, and 142°. For analogous combinations, try hues 232° and 292°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(262, 20%, 56%) in CSS?
As HSL: color: hsl(262, 20%, 56%); — As HEX: color: #8978A5; — As RGB: color: rgb(137, 120, 165); — Tailwind CSS: bg-[hsl(262,20%,56%)] — CSS variable: --color-primary: hsl(262, 20%, 56%);