HSL(271, 50%, 30%)
Indigo — Indigo color
Adjust Color
Color Information
Color Name
Indigo
Color Family
Indigo
Warm / Cool
🔵 Cool
Temperature
6500K
CSS Class
bg-[hsl(271,50%,30%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(271, 50%, 30%) | color: hsl(271, 50%, 30%) | |
| HEX | #4E2673 | color: #4E2673 | |
| RGB | rgb(78, 38, 115) | color: rgb(78, 38, 115) | |
| CMYK | cmyk(32%, 67%, 0%, 55%) | — | |
| HSV | hsv(271, 67%, 45%) | — | |
| HWB | hwb(271 15% 55%) | color: hwb(271 15% 55%) | |
| OKLCH | oklch(0.3638 0.1283 304.68) | color: oklch(0.3638 0.1283 304.68) | |
| Lab | lab(24.46 34.47 -37.23) | color: lab(24.46 34.47 -37.23) | |
| LCH | lch(24.46 50.74 312.8) | color: lch(24.46 50.74 312.8) |
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)
#3D3C60 — rgb(61, 60, 96)
Deuteranopia (Green-blind)
#3F425C — rgb(63, 66, 92)
Tritanopia (Blue-blind)
#4C524E — rgb(76, 82, 78)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(271, 50%, 30%);
text
color: hsl(271, 50%, 30%);
border
border: 2px solid hsl(271, 50%, 30%);
gradient light
background: linear-gradient(to right, hsl(271, 50%, 50%), hsl(271, 50%, 30%));
gradient dark
background: linear-gradient(to right, hsl(271, 50%, 30%), hsl(271, 50%, 10%))
hex
background-color: #4E2673;
tailwind
bg-[hsl(271,50%,30%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(271, 50%, 30%, 0.4);
css variable
--color-primary: hsl(271, 50%, 30%);
Related Colors
Use Cases for Indigo
Frequently Asked Questions
What are all the color codes for HSL(271, 50%, 30%)?
HEX: #4E2673 | RGB: rgb(78, 38, 115) | CMYK: 32%, 67%, 0%, 55% | HSV: 271°, 67%, 45%. Copy any format from the conversion table above.
What colors go well with #4E2673?
The complementary color is HSL(91, 50%, 30%). 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, 50%, 30%) in CSS?
As HSL: color: hsl(271, 50%, 30%); — As HEX: color: #4E2673; — As RGB: color: rgb(78, 38, 115); — Tailwind CSS: bg-[hsl(271,50%,30%)] — CSS variable: --color-primary: hsl(271, 50%, 30%);