HSL(262, 39%, 54%)

Indigo — Indigo color

Adjust Color

Color Information

Color Name

Indigo

Color Family

Indigo

Warm / Cool

🔵 Cool

Temperature

9000K

CSS Class

bg-[hsl(262,39%,54%)]

Color Conversions

Format Value CSS Usage
HSL hsl(262, 39%, 54%) color: hsl(262, 39%, 54%)
HEX #7E5CB7 color: #7E5CB7
RGB rgb(126, 92, 183) color: rgb(126, 92, 183)
CMYK cmyk(31%, 50%, 0%, 28%)
HSV hsv(262, 50%, 72%)
HWB hwb(262 36% 28%) color: hwb(262 36% 28%)
OKLCH oklch(0.551 0.1396 299.01) color: oklch(0.551 0.1396 299.01)
Lab lab(46.32 33.52 -43.35) color: lab(46.32 33.52 -43.35)
LCH lch(46.32 54.8 307.71) color: lch(46.32 54.8 307.71)

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 5.12:1
vs Black 4.1: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)

#6F6FA1 — rgb(111, 111, 161)

Deuteranopia (Green-blind)

#71749C — rgb(113, 116, 156)

Tritanopia (Blue-blind)

#7C908C — rgb(124, 144, 140)

Tints & Shades

Tints (Lighter →)

← Shades (Darker)

Saturation (0% → 100%)

CSS Code Snippets

background

background-color: hsl(262, 39%, 54%);

text

color: hsl(262, 39%, 54%);

border

border: 2px solid hsl(262, 39%, 54%);

gradient light

background: linear-gradient(to right, hsl(262, 39%, 74%), hsl(262, 39%, 54%));

gradient dark

background: linear-gradient(to right, hsl(262, 39%, 54%), hsl(262, 39%, 34%))

hex

background-color: #7E5CB7;

tailwind

bg-[hsl(262,39%,54%)]

box shadow

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

css variable

--color-primary: hsl(262, 39%, 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(262, 39%, 54%)?

HEX: #7E5CB7 | RGB: rgb(126, 92, 183) | CMYK: 31%, 50%, 0%, 28% | HSV: 262°, 50%, 72%. Copy any format from the conversion table above.

What colors go well with #7E5CB7?

The complementary color is HSL(82, 39%, 54%). 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, 39%, 54%) in CSS?

As HSL: color: hsl(262, 39%, 54%); — As HEX: color: #7E5CB7; — As RGB: color: rgb(126, 92, 183); — Tailwind CSS: bg-[hsl(262,39%,54%)] — CSS variable: --color-primary: hsl(262, 39%, 54%);