HSL(261, 21%, 52%)

Indigo — Indigo color

Adjust Color

Color Information

Color Name

Indigo

Color Family

Indigo

Warm / Cool

🔵 Cool

Temperature

9000K

CSS Class

bg-[hsl(261,21%,52%)]

Color Conversions

Format Value CSS Usage
HSL hsl(261, 21%, 52%) color: hsl(261, 21%, 52%)
HEX #7D6B9E color: #7D6B9E
RGB rgb(125, 107, 158) color: rgb(125, 107, 158)
CMYK cmyk(21%, 32%, 0%, 38%)
HSV hsv(261, 32%, 62%)
HWB hwb(261 42% 38%) color: hwb(261 42% 38%)
OKLCH oklch(0.5647 0.0797 300.07) color: oklch(0.5647 0.0797 300.07)
Lab lab(48.69 17.99 -25) color: lab(48.69 17.99 -25)
LCH lch(48.69 30.8 305.74) color: lch(48.69 30.8 305.74)

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.7:1
vs Black 4.47:1

AA Normal (4.5:1)

on White: PASS ✓ on Black: FAIL ✗

AA Large (3:1)

on White: PASS ✓ on Black: PASS ✓

AAA Normal (7:1)

on White: FAIL ✗

Best text on this color: white

Color Blindness Simulation

Protanopia (Red-blind)

#757592 — rgb(117, 117, 146)

Deuteranopia (Green-blind)

#76788F — rgb(118, 120, 143)

Tritanopia (Blue-blind)

#7C8886 — rgb(124, 136, 134)

Tints & Shades

Tints (Lighter →)

← Shades (Darker)

Saturation (0% → 100%)

CSS Code Snippets

background

background-color: hsl(261, 21%, 52%);

text

color: hsl(261, 21%, 52%);

border

border: 2px solid hsl(261, 21%, 52%);

gradient light

background: linear-gradient(to right, hsl(261, 21%, 72%), hsl(261, 21%, 52%));

gradient dark

background: linear-gradient(to right, hsl(261, 21%, 52%), hsl(261, 21%, 32%))

hex

background-color: #7D6B9E;

tailwind

bg-[hsl(261,21%,52%)]

box shadow

box-shadow: 0 4px 6px -1px hsl(261, 21%, 52%, 0.4);

css variable

--color-primary: hsl(261, 21%, 52%);

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(261, 21%, 52%)?

HEX: #7D6B9E | RGB: rgb(125, 107, 158) | CMYK: 21%, 32%, 0%, 38% | HSV: 261°, 32%, 62%. Copy any format from the conversion table above.

What colors go well with #7D6B9E?

The complementary color is HSL(81, 21%, 52%). For a triadic harmony, use hues 261°, 21°, and 141°. For analogous combinations, try hues 231° and 291°. See the Color Harmony section above for complete palettes with previews.

How do I use HSL(261, 21%, 52%) in CSS?

As HSL: color: hsl(261, 21%, 52%); — As HEX: color: #7D6B9E; — As RGB: color: rgb(125, 107, 158); — Tailwind CSS: bg-[hsl(261,21%,52%)] — CSS variable: --color-primary: hsl(261, 21%, 52%);