HSL(268, 38%, 62%)
Indigo — Indigo color
Adjust Color
Color Information
Color Name
Indigo
Color Family
Indigo
Warm / Cool
🔵 Cool
Temperature
9000K
CSS Class
bg-[hsl(268,38%,62%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(268, 38%, 62%) | color: hsl(268, 38%, 62%) | |
| HEX | #9C79C3 | color: #9C79C3 | |
| RGB | rgb(156, 121, 195) | color: rgb(156, 121, 195) | |
| CMYK | cmyk(20%, 38%, 0%, 24%) | — | |
| HSV | hsv(268, 38%, 76%) | — | |
| HWB | hwb(268 47% 24%) | color: hwb(268 47% 24%) | |
| OKLCH | oklch(0.6386 0.1139 305.14) | color: oklch(0.6386 0.1139 305.14) | |
| Lab | lab(56.77 28.28 -33.61) | color: lab(56.77 28.28 -33.61) | |
| LCH | lch(56.77 43.92 310.08) | color: lch(56.77 43.92 310.08) |
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: black
Color Blindness Simulation
Protanopia (Red-blind)
#8D8DB1 — rgb(141, 141, 177)
Deuteranopia (Green-blind)
#8F92AD — rgb(143, 146, 173)
Tritanopia (Blue-blind)
#9AA3A0 — rgb(154, 163, 160)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(268, 38%, 62%);
text
color: hsl(268, 38%, 62%);
border
border: 2px solid hsl(268, 38%, 62%);
gradient light
background: linear-gradient(to right, hsl(268, 38%, 82%), hsl(268, 38%, 62%));
gradient dark
background: linear-gradient(to right, hsl(268, 38%, 62%), hsl(268, 38%, 42%))
hex
background-color: #9C79C3;
tailwind
bg-[hsl(268,38%,62%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(268, 38%, 62%, 0.4);
css variable
--color-primary: hsl(268, 38%, 62%);
Related Colors
Use Cases for Indigo
Frequently Asked Questions
What are all the color codes for HSL(268, 38%, 62%)?
HEX: #9C79C3 | RGB: rgb(156, 121, 195) | CMYK: 20%, 38%, 0%, 24% | HSV: 268°, 38%, 76%. Copy any format from the conversion table above.
What colors go well with #9C79C3?
The complementary color is HSL(88, 38%, 62%). For a triadic harmony, use hues 268°, 28°, and 148°. For analogous combinations, try hues 238° and 298°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(268, 38%, 62%) in CSS?
As HSL: color: hsl(268, 38%, 62%); — As HEX: color: #9C79C3; — As RGB: color: rgb(156, 121, 195); — Tailwind CSS: bg-[hsl(268,38%,62%)] — CSS variable: --color-primary: hsl(268, 38%, 62%);