HSL(261, 27%, 52%)
Indigo — Indigo color
Adjust Color
Color Information
Color Name
Indigo
Color Family
Indigo
Warm / Cool
🔵 Cool
Temperature
9000K
CSS Class
bg-[hsl(261,27%,52%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(261, 27%, 52%) | color: hsl(261, 27%, 52%) | |
| HEX | #7B64A6 | color: #7B64A6 | |
| RGB | rgb(123, 100, 166) | color: rgb(123, 100, 166) | |
| CMYK | cmyk(26%, 40%, 0%, 35%) | — | |
| HSV | hsv(261, 40%, 65%) | — | |
| HWB | hwb(261 39% 35%) | color: hwb(261 39% 35%) | |
| OKLCH | oklch(0.5531 0.1027 299.07) | color: oklch(0.5531 0.1027 299.07) | |
| Lab | lab(47.08 23.55 -32.23) | color: lab(47.08 23.55 -32.23) | |
| LCH | lch(47.08 39.92 306.16) | color: lch(47.08 39.92 306.16) |
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)
#717196 — rgb(113, 113, 150)
Deuteranopia (Green-blind)
#727492 — rgb(114, 116, 146)
Tritanopia (Blue-blind)
#7A8987 — rgb(122, 137, 135)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(261, 27%, 52%);
text
color: hsl(261, 27%, 52%);
border
border: 2px solid hsl(261, 27%, 52%);
gradient light
background: linear-gradient(to right, hsl(261, 27%, 72%), hsl(261, 27%, 52%));
gradient dark
background: linear-gradient(to right, hsl(261, 27%, 52%), hsl(261, 27%, 32%))
hex
background-color: #7B64A6;
tailwind
bg-[hsl(261,27%,52%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(261, 27%, 52%, 0.4);
css variable
--color-primary: hsl(261, 27%, 52%);
Related Colors
Use Cases for Indigo
Frequently Asked Questions
What are all the color codes for HSL(261, 27%, 52%)?
HEX: #7B64A6 | RGB: rgb(123, 100, 166) | CMYK: 26%, 40%, 0%, 35% | HSV: 261°, 40%, 65%. Copy any format from the conversion table above.
What colors go well with #7B64A6?
The complementary color is HSL(81, 27%, 52%). For a triadic harmony, use hues 261°, 21°, and 141°. For analogous combinations, try hues 231° and 291°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(261, 27%, 52%) in CSS?
As HSL: color: hsl(261, 27%, 52%); — As HEX: color: #7B64A6; — As RGB: color: rgb(123, 100, 166); — Tailwind CSS: bg-[hsl(261,27%,52%)] — CSS variable: --color-primary: hsl(261, 27%, 52%);