HSL(277, 59%, 53%)

Indigo — Indigo color

Adjust Color

Color Information

Color Name

Indigo

Color Family

Indigo

Warm / Cool

🔵 Cool

Temperature

6500K

CSS Class

bg-[hsl(277,59%,53%)]

Color Conversions

Format Value CSS Usage
HSL hsl(277, 59%, 53%) color: hsl(277, 59%, 53%)
HEX #9840CE color: #9840CE
RGB rgb(152, 64, 206) color: rgb(152, 64, 206)
CMYK cmyk(26%, 69%, 0%, 19%)
HSV hsv(277, 69%, 81%)
HWB hwb(277 25% 19%) color: hwb(277 25% 19%)
OKLCH oklch(0.5553 0.213 309.52) color: oklch(0.5553 0.213 309.52)
Lab lab(45.36 59.77 -58.06) color: lab(45.36 59.77 -58.06)
LCH lch(45.36 83.33 315.83) color: lch(45.36 83.33 315.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 5.3:1
vs Black 3.96: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)

#7271AC — rgb(114, 113, 172)

Deuteranopia (Green-blind)

#777EA3 — rgb(119, 126, 163)

Tritanopia (Blue-blind)

#94918B — rgb(148, 145, 139)

Tints & Shades

Tints (Lighter →)

← Shades (Darker)

Saturation (0% → 100%)

CSS Code Snippets

background

background-color: hsl(277, 59%, 53%);

text

color: hsl(277, 59%, 53%);

border

border: 2px solid hsl(277, 59%, 53%);

gradient light

background: linear-gradient(to right, hsl(277, 59%, 73%), hsl(277, 59%, 53%));

gradient dark

background: linear-gradient(to right, hsl(277, 59%, 53%), hsl(277, 59%, 33%))

hex

background-color: #9840CE;

tailwind

bg-[hsl(277,59%,53%)]

box shadow

box-shadow: 0 4px 6px -1px hsl(277, 59%, 53%, 0.4);

css variable

--color-primary: hsl(277, 59%, 53%);

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(277, 59%, 53%)?

HEX: #9840CE | RGB: rgb(152, 64, 206) | CMYK: 26%, 69%, 0%, 19% | HSV: 277°, 69%, 81%. Copy any format from the conversion table above.

What colors go well with #9840CE?

The complementary color is HSL(97, 59%, 53%). For a triadic harmony, use hues 277°, 37°, and 157°. For analogous combinations, try hues 247° and 307°. See the Color Harmony section above for complete palettes with previews.

How do I use HSL(277, 59%, 53%) in CSS?

As HSL: color: hsl(277, 59%, 53%); — As HEX: color: #9840CE; — As RGB: color: rgb(152, 64, 206); — Tailwind CSS: bg-[hsl(277,59%,53%)] — CSS variable: --color-primary: hsl(277, 59%, 53%);