HSL(262, 27%, 63%)
Indigo — Indigo color
Adjust Color
Color Information
Color Name
Indigo
Color Family
Indigo
Warm / Cool
🔵 Cool
Temperature
9000K
CSS Class
bg-[hsl(262,27%,63%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(262, 27%, 63%) | color: hsl(262, 27%, 63%) | |
| HEX | #9A87BA | color: #9A87BA | |
| RGB | rgb(154, 135, 186) | color: rgb(154, 135, 186) | |
| CMYK | cmyk(17%, 27%, 0%, 27%) | — | |
| HSV | hsv(262, 27%, 73%) | — | |
| HWB | hwb(262 53% 27%) | color: hwb(262 53% 27%) | |
| OKLCH | oklch(0.659 0.0772 301.38) | color: oklch(0.659 0.0772 301.38) | |
| Lab | lab(59.66 17.52 -24.04) | color: lab(59.66 17.52 -24.04) | |
| LCH | lch(59.66 29.75 306.08) | color: lch(59.66 29.75 306.08) |
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)
#9292AE — rgb(146, 146, 174)
Deuteranopia (Green-blind)
#9394AB — rgb(147, 148, 171)
Tritanopia (Blue-blind)
#99A4A2 — rgb(153, 164, 162)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(262, 27%, 63%);
text
color: hsl(262, 27%, 63%);
border
border: 2px solid hsl(262, 27%, 63%);
gradient light
background: linear-gradient(to right, hsl(262, 27%, 83%), hsl(262, 27%, 63%));
gradient dark
background: linear-gradient(to right, hsl(262, 27%, 63%), hsl(262, 27%, 43%))
hex
background-color: #9A87BA;
tailwind
bg-[hsl(262,27%,63%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(262, 27%, 63%, 0.4);
css variable
--color-primary: hsl(262, 27%, 63%);
Related Colors
Use Cases for Indigo
Frequently Asked Questions
What are all the color codes for HSL(262, 27%, 63%)?
HEX: #9A87BA | RGB: rgb(154, 135, 186) | CMYK: 17%, 27%, 0%, 27% | HSV: 262°, 27%, 73%. Copy any format from the conversion table above.
What colors go well with #9A87BA?
The complementary color is HSL(82, 27%, 63%). 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, 27%, 63%) in CSS?
As HSL: color: hsl(262, 27%, 63%); — As HEX: color: #9A87BA; — As RGB: color: rgb(154, 135, 186); — Tailwind CSS: bg-[hsl(262,27%,63%)] — CSS variable: --color-primary: hsl(262, 27%, 63%);