HSL(260, 22%, 54%)

Indigo — Indigo color

Adjust Color

Color Information

Color Name

Indigo

Color Family

Indigo

Warm / Cool

🔵 Cool

Temperature

9000K

CSS Class

bg-[hsl(260,22%,54%)]

Color Conversions

Format Value CSS Usage
HSL hsl(260, 22%, 54%) color: hsl(260, 22%, 54%)
HEX #8170A4 color: #8170A4
RGB rgb(129, 112, 164) color: rgb(129, 112, 164)
CMYK cmyk(21%, 32%, 0%, 36%)
HSV hsv(260, 32%, 64%)
HWB hwb(260 44% 36%) color: hwb(260 44% 36%)
OKLCH oklch(0.5812 0.0804 298.9) color: oklch(0.5812 0.0804 298.9)
Lab lab(50.61 17.75 -25.51) color: lab(50.61 17.75 -25.51)
LCH lch(50.61 31.08 304.83) color: lch(50.61 31.08 304.83)

Color Theory

Complementary

Triadic

Analogous

Tetradic (Square)

Split-Complementary

Accessibility (WCAG)

White text on color

Black text on color

Color on white bg

Colored text

Contrast Ratios

vs White 4.39:1
vs Black 4.79:1

AA Normal (4.5:1)

on White: FAIL ✗ on Black: PASS ✓

AA Large (3:1)

on White: PASS ✓ on Black: PASS ✓

AAA Normal (7:1)

on White: FAIL ✗

Best text on this color: black

Color Blindness Simulation

Protanopia (Red-blind)

#7A7997 — rgb(122, 121, 151)

Deuteranopia (Green-blind)

#7B7C94 — rgb(123, 124, 148)

Tritanopia (Blue-blind)

#808D8B — rgb(128, 141, 139)

Tints & Shades

Tints (Lighter →)

← Shades (Darker)

Saturation (0% → 100%)

CSS Code Snippets

background

background-color: hsl(260, 22%, 54%);

text

color: hsl(260, 22%, 54%);

border

border: 2px solid hsl(260, 22%, 54%);

gradient light

background: linear-gradient(to right, hsl(260, 22%, 74%), hsl(260, 22%, 54%));

gradient dark

background: linear-gradient(to right, hsl(260, 22%, 54%), hsl(260, 22%, 34%))

hex

background-color: #8170A4;

tailwind

bg-[hsl(260,22%,54%)]

box shadow

box-shadow: 0 4px 6px -1px hsl(260, 22%, 54%, 0.4);

css variable

--color-primary: hsl(260, 22%, 54%);

Related Colors

Use Cases for Indigo

UI elements Web design Branding Graphic design Print design

Frequently Asked Questions

What are all the color codes for HSL(260, 22%, 54%)?

HEX: #8170A4 | RGB: rgb(129, 112, 164) | CMYK: 21%, 32%, 0%, 36% | HSV: 260°, 32%, 64%. Copy any format from the conversion table above.

What colors go well with #8170A4?

The complementary color is HSL(80, 22%, 54%). For a triadic harmony, use hues 260°, 20°, and 140°. For analogous combinations, try hues 230° and 290°. See the Color Harmony section above for complete palettes with previews.

How do I use HSL(260, 22%, 54%) in CSS?

As HSL: color: hsl(260, 22%, 54%); — As HEX: color: #8170A4; — As RGB: color: rgb(129, 112, 164); — Tailwind CSS: bg-[hsl(260,22%,54%)] — CSS variable: --color-primary: hsl(260, 22%, 54%);