HSL(282, 80%, 25%)

Indigo — Indigo color

Adjust Color

Color Information

Color Name

Indigo

Color Family

Indigo

Warm / Cool

🔵 Cool

Temperature

6500K

CSS Class

bg-[hsl(282,80%,25%)]

Color Conversions

Format Value CSS Usage
HSL hsl(282, 80%, 25%) color: hsl(282, 80%, 25%)
HEX #540D73 color: #540D73
RGB rgb(84, 13, 115) color: rgb(84, 13, 115)
CMYK cmyk(27%, 89%, 0%, 55%)
HSV hsv(282, 89%, 45%)
HWB hwb(282 5% 55%) color: hwb(282 5% 55%)
OKLCH oklch(0.3455 0.1595 311.99) color: oklch(0.3455 0.1595 311.99)
Lab lab(21.62 46.37 -41.79) color: lab(21.62 46.37 -41.79)
LCH lch(21.62 62.42 317.97) color: lch(21.62 62.42 317.97)

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 12.48:1
vs Black 1.68:1

AA Normal (4.5:1)

on White: PASS ✓ on Black: FAIL ✗

AA Large (3:1)

on White: PASS ✓ on Black: FAIL ✗

AAA Normal (7:1)

on White: PASS ✓

Best text on this color: white

Color Blindness Simulation

Protanopia (Red-blind)

#35355A — rgb(53, 53, 90)

Deuteranopia (Green-blind)

#393F54 — rgb(57, 63, 84)

Tritanopia (Blue-blind)

#504743 — rgb(80, 71, 67)

Tints & Shades

Tints (Lighter →)

← Shades (Darker)

Saturation (0% → 100%)

CSS Code Snippets

background

background-color: hsl(282, 80%, 25%);

text

color: hsl(282, 80%, 25%);

border

border: 2px solid hsl(282, 80%, 25%);

gradient light

background: linear-gradient(to right, hsl(282, 80%, 45%), hsl(282, 80%, 25%));

gradient dark

background: linear-gradient(to right, hsl(282, 80%, 25%), hsl(282, 80%, 5%))

hex

background-color: #540D73;

tailwind

bg-[hsl(282,80%,25%)]

box shadow

box-shadow: 0 4px 6px -1px hsl(282, 80%, 25%, 0.4);

css variable

--color-primary: hsl(282, 80%, 25%);

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(282, 80%, 25%)?

HEX: #540D73 | RGB: rgb(84, 13, 115) | CMYK: 27%, 89%, 0%, 55% | HSV: 282°, 89%, 45%. Copy any format from the conversion table above.

What colors go well with #540D73?

The complementary color is HSL(102, 80%, 25%). For a triadic harmony, use hues 282°, 42°, and 162°. For analogous combinations, try hues 252° and 312°. See the Color Harmony section above for complete palettes with previews.

How do I use HSL(282, 80%, 25%) in CSS?

As HSL: color: hsl(282, 80%, 25%); — As HEX: color: #540D73; — As RGB: color: rgb(84, 13, 115); — Tailwind CSS: bg-[hsl(282,80%,25%)] — CSS variable: --color-primary: hsl(282, 80%, 25%);