HSL(272, 54%, 40%)
Indigo — Indigo color
Adjust Color
Color Information
Color Name
Indigo
Color Family
Indigo
Warm / Cool
🔵 Cool
Temperature
6500K
CSS Class
bg-[hsl(272,54%,40%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(272, 54%, 40%) | color: hsl(272, 54%, 40%) | |
| HEX | #6A2F9D | color: #6A2F9D | |
| RGB | rgb(106, 47, 157) | color: rgb(106, 47, 157) | |
| CMYK | cmyk(32%, 70%, 0%, 38%) | — | |
| HSV | hsv(272, 70%, 62%) | — | |
| HWB | hwb(272 19% 38%) | color: hwb(272 19% 38%) | |
| OKLCH | oklch(0.4429 0.1711 304.89) | color: oklch(0.4429 0.1711 304.89) | |
| Lab | lab(32.99 46.76 -49.42) | color: lab(32.99 46.76 -49.42) | |
| LCH | lch(32.99 68.04 313.42) | color: lch(32.99 68.04 313.42) |
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)
#505082 — rgb(80, 80, 130)
Deuteranopia (Green-blind)
#54587C — rgb(84, 88, 124)
Tritanopia (Blue-blind)
#676D69 — rgb(103, 109, 105)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(272, 54%, 40%);
text
color: hsl(272, 54%, 40%);
border
border: 2px solid hsl(272, 54%, 40%);
gradient light
background: linear-gradient(to right, hsl(272, 54%, 60%), hsl(272, 54%, 40%));
gradient dark
background: linear-gradient(to right, hsl(272, 54%, 40%), hsl(272, 54%, 20%))
hex
background-color: #6A2F9D;
tailwind
bg-[hsl(272,54%,40%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(272, 54%, 40%, 0.4);
css variable
--color-primary: hsl(272, 54%, 40%);
Related Colors
Use Cases for Indigo
Frequently Asked Questions
What are all the color codes for HSL(272, 54%, 40%)?
HEX: #6A2F9D | RGB: rgb(106, 47, 157) | CMYK: 32%, 70%, 0%, 38% | HSV: 272°, 70%, 62%. Copy any format from the conversion table above.
What colors go well with #6A2F9D?
The complementary color is HSL(92, 54%, 40%). For a triadic harmony, use hues 272°, 32°, and 152°. For analogous combinations, try hues 242° and 302°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(272, 54%, 40%) in CSS?
As HSL: color: hsl(272, 54%, 40%); — As HEX: color: #6A2F9D; — As RGB: color: rgb(106, 47, 157); — Tailwind CSS: bg-[hsl(272,54%,40%)] — CSS variable: --color-primary: hsl(272, 54%, 40%);