HSL(272, 63%, 42%)
Indigo — Indigo color
Adjust Color
Color Information
Color Name
Indigo
Color Family
Indigo
Warm / Cool
🔵 Cool
Temperature
6500K
CSS Class
bg-[hsl(272,63%,42%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(272, 63%, 42%) | color: hsl(272, 63%, 42%) | |
| HEX | #7028AF | color: #7028AF | |
| RGB | rgb(112, 40, 175) | color: rgb(112, 40, 175) | |
| CMYK | cmyk(36%, 77%, 0%, 31%) | — | |
| HSV | hsv(272, 77%, 69%) | — | |
| HWB | hwb(272 16% 31%) | color: hwb(272 16% 31%) | |
| OKLCH | oklch(0.457 0.1994 303.39) | color: oklch(0.457 0.1994 303.39) | |
| Lab | lab(34.1 55.3 -58.4) | color: lab(34.1 55.3 -58.4) | |
| LCH | lch(34.1 80.43 313.44) | color: lch(34.1 80.43 313.44) |
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)
#51508E — rgb(81, 80, 142)
Deuteranopia (Green-blind)
#555A87 — rgb(85, 90, 135)
Tritanopia (Blue-blind)
#6C756F — rgb(108, 117, 111)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(272, 63%, 42%);
text
color: hsl(272, 63%, 42%);
border
border: 2px solid hsl(272, 63%, 42%);
gradient light
background: linear-gradient(to right, hsl(272, 63%, 62%), hsl(272, 63%, 42%));
gradient dark
background: linear-gradient(to right, hsl(272, 63%, 42%), hsl(272, 63%, 22%))
hex
background-color: #7028AF;
tailwind
bg-[hsl(272,63%,42%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(272, 63%, 42%, 0.4);
css variable
--color-primary: hsl(272, 63%, 42%);
Related Colors
Use Cases for Indigo
Frequently Asked Questions
What are all the color codes for HSL(272, 63%, 42%)?
HEX: #7028AF | RGB: rgb(112, 40, 175) | CMYK: 36%, 77%, 0%, 31% | HSV: 272°, 77%, 69%. Copy any format from the conversion table above.
What colors go well with #7028AF?
The complementary color is HSL(92, 63%, 42%). 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, 63%, 42%) in CSS?
As HSL: color: hsl(272, 63%, 42%); — As HEX: color: #7028AF; — As RGB: color: rgb(112, 40, 175); — Tailwind CSS: bg-[hsl(272,63%,42%)] — CSS variable: --color-primary: hsl(272, 63%, 42%);