HSL(265, 40%, 62%)
Indigo — Indigo color
Adjust Color
Color Information
Color Name
Indigo
Color Family
Indigo
Warm / Cool
🔵 Cool
Temperature
9000K
CSS Class
bg-[hsl(265,40%,62%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(265, 40%, 62%) | color: hsl(265, 40%, 62%) | |
| HEX | #9877C5 | color: #9877C5 | |
| RGB | rgb(152, 119, 197) | color: rgb(152, 119, 197) | |
| CMYK | cmyk(23%, 40%, 0%, 23%) | — | |
| HSV | hsv(265, 40%, 77%) | — | |
| HWB | hwb(265 46% 23%) | color: hwb(265 46% 23%) | |
| OKLCH | oklch(0.6321 0.1189 302.63) | color: oklch(0.6321 0.1189 302.63) | |
| Lab | lab(55.99 28.7 -36) | color: lab(55.99 28.7 -36) | |
| LCH | lch(55.99 46.04 308.56) | color: lch(55.99 46.04 308.56) |
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)
#8A89B2 — rgb(138, 137, 178)
Deuteranopia (Green-blind)
#8C8EAE — rgb(140, 142, 174)
Tritanopia (Blue-blind)
#96A3A0 — rgb(150, 163, 160)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(265, 40%, 62%);
text
color: hsl(265, 40%, 62%);
border
border: 2px solid hsl(265, 40%, 62%);
gradient light
background: linear-gradient(to right, hsl(265, 40%, 82%), hsl(265, 40%, 62%));
gradient dark
background: linear-gradient(to right, hsl(265, 40%, 62%), hsl(265, 40%, 42%))
hex
background-color: #9877C5;
tailwind
bg-[hsl(265,40%,62%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(265, 40%, 62%, 0.4);
css variable
--color-primary: hsl(265, 40%, 62%);
Related Colors
Use Cases for Indigo
Frequently Asked Questions
What are all the color codes for HSL(265, 40%, 62%)?
HEX: #9877C5 | RGB: rgb(152, 119, 197) | CMYK: 23%, 40%, 0%, 23% | HSV: 265°, 40%, 77%. Copy any format from the conversion table above.
What colors go well with #9877C5?
The complementary color is HSL(85, 40%, 62%). For a triadic harmony, use hues 265°, 25°, and 145°. For analogous combinations, try hues 235° and 295°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(265, 40%, 62%) in CSS?
As HSL: color: hsl(265, 40%, 62%); — As HEX: color: #9877C5; — As RGB: color: rgb(152, 119, 197); — Tailwind CSS: bg-[hsl(265,40%,62%)] — CSS variable: --color-primary: hsl(265, 40%, 62%);