HSL(271, 70%, 46%)
Indigo — Indigo color
Adjust Color
Color Information
Color Name
Indigo
Color Family
Indigo
Warm / Cool
🔵 Cool
Temperature
6500K
CSS Class
bg-[hsl(271,70%,46%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(271, 70%, 46%) | color: hsl(271, 70%, 46%) | |
| HEX | #7823C7 | color: #7823C7 | |
| RGB | rgb(120, 35, 199) | color: rgb(120, 35, 199) | |
| CMYK | cmyk(40%, 82%, 0%, 22%) | — | |
| HSV | hsv(271, 82%, 78%) | — | |
| HWB | hwb(271 14% 22%) | color: hwb(271 14% 22%) | |
| OKLCH | oklch(0.4828 0.2286 301.13) | color: oklch(0.4828 0.2286 301.13) | |
| Lab | lab(36.59 63.88 -68.45) | color: lab(36.59 63.88 -68.45) | |
| LCH | lch(36.59 93.63 313.02) | color: lch(36.59 93.63 313.02) |
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)
#53529F — rgb(83, 82, 159)
Deuteranopia (Green-blind)
#585F96 — rgb(88, 95, 150)
Tritanopia (Blue-blind)
#748079 — rgb(116, 128, 121)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(271, 70%, 46%);
text
color: hsl(271, 70%, 46%);
border
border: 2px solid hsl(271, 70%, 46%);
gradient light
background: linear-gradient(to right, hsl(271, 70%, 66%), hsl(271, 70%, 46%));
gradient dark
background: linear-gradient(to right, hsl(271, 70%, 46%), hsl(271, 70%, 26%))
hex
background-color: #7823C7;
tailwind
bg-[hsl(271,70%,46%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(271, 70%, 46%, 0.4);
css variable
--color-primary: hsl(271, 70%, 46%);
Related Colors
Use Cases for Indigo
Frequently Asked Questions
What are all the color codes for HSL(271, 70%, 46%)?
HEX: #7823C7 | RGB: rgb(120, 35, 199) | CMYK: 40%, 82%, 0%, 22% | HSV: 271°, 82%, 78%. Copy any format from the conversion table above.
What colors go well with #7823C7?
The complementary color is HSL(91, 70%, 46%). For a triadic harmony, use hues 271°, 31°, and 151°. For analogous combinations, try hues 241° and 301°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(271, 70%, 46%) in CSS?
As HSL: color: hsl(271, 70%, 46%); — As HEX: color: #7823C7; — As RGB: color: rgb(120, 35, 199); — Tailwind CSS: bg-[hsl(271,70%,46%)] — CSS variable: --color-primary: hsl(271, 70%, 46%);