HSL(262, 17%, 52%)
Indigo — Indigo color
Adjust Color
Color Information
Color Name
Indigo
Color Family
Indigo
Warm / Cool
🔵 Cool
Temperature
N/A
CSS Class
bg-[hsl(262,17%,52%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(262, 17%, 52%) | color: hsl(262, 17%, 52%) | |
| HEX | #7F7099 | color: #7F7099 | |
| RGB | rgb(127, 112, 153) | color: rgb(127, 112, 153) | |
| CMYK | cmyk(17%, 27%, 0%, 40%) | — | |
| HSV | hsv(262, 27%, 60%) | — | |
| HWB | hwb(262 44% 40%) | color: hwb(262 44% 40%) | |
| OKLCH | oklch(0.5744 0.0642 301.16) | color: oklch(0.5744 0.0642 301.16) | |
| Lab | lab(49.98 14.46 -20.06) | color: lab(49.98 14.46 -20.06) | |
| LCH | lch(49.98 24.73 305.79) | color: lch(49.98 24.73 305.79) |
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)
#79788F — rgb(121, 120, 143)
Deuteranopia (Green-blind)
#797B8D — rgb(121, 123, 141)
Tritanopia (Blue-blind)
#7E8786 — rgb(126, 135, 134)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(262, 17%, 52%);
text
color: hsl(262, 17%, 52%);
border
border: 2px solid hsl(262, 17%, 52%);
gradient light
background: linear-gradient(to right, hsl(262, 17%, 72%), hsl(262, 17%, 52%));
gradient dark
background: linear-gradient(to right, hsl(262, 17%, 52%), hsl(262, 17%, 32%))
hex
background-color: #7F7099;
tailwind
bg-[hsl(262,17%,52%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(262, 17%, 52%, 0.4);
css variable
--color-primary: hsl(262, 17%, 52%);
Related Colors
Use Cases for Indigo
Frequently Asked Questions
What are all the color codes for HSL(262, 17%, 52%)?
HEX: #7F7099 | RGB: rgb(127, 112, 153) | CMYK: 17%, 27%, 0%, 40% | HSV: 262°, 27%, 60%. Copy any format from the conversion table above.
What colors go well with #7F7099?
The complementary color is HSL(82, 17%, 52%). For a triadic harmony, use hues 262°, 22°, and 142°. For analogous combinations, try hues 232° and 292°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(262, 17%, 52%) in CSS?
As HSL: color: hsl(262, 17%, 52%); — As HEX: color: #7F7099; — As RGB: color: rgb(127, 112, 153); — Tailwind CSS: bg-[hsl(262,17%,52%)] — CSS variable: --color-primary: hsl(262, 17%, 52%);