#542D78

Closest named color: Dark Slate Blue (#483D8B). oklch(38.6% 0.125 305.2), rgb(84, 45, 120).

Aa

White text reads best on this color (10.37:1).

About this color

#542D78 is a dark, moderately saturated purple. In OKLCH its lightness is 39%, its chroma 0.125 and its hue 305°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Dark Slate Blue (#483D8B), ΔE 0.051 away. White text reads best on it, at 10.37:1.

Hue familyPurples
Lightnessdark (39%)
Chromamoderately saturated (0.125)
Temperaturein between
Nearest nameDark Slate Blue (#483D8B)
Black text2.02:1
White text10.37:1

Values

HEX#542D78
RGBrgb(84, 45, 120)
HSLhsl(271, 45%, 32%)
OKLCHoklch(38.6% 0.125 305.2)

Contrast

WCAG 2 contrast ratios are the conformance target: AA needs 4.5:1 for body text and 3:1 for large text, AAA needs 7:1. APCA Lc values are supplementary guidance from the WCAG 3 drafts.

PairWCAG 2ResultAPCAAPCA guidance
White text on #542D78 10.37:1 AAA Lc -97.8 Preferred for body text
Black text on #542D78 2.02:1 Fails Lc 10.2 Not readable
#542D78 text on white 10.37:1 AAA Lc 93.7 Preferred for body text
#542D78 text on black 2.02:1 Fails Lc -8.8 Not readable

Tints and shades

A 50–950 scale built in OKLCH: the hue is held, lightness follows a Tailwind v4-like curve, and every step is kept inside the sRGB gamut. This color sits at step 900.

  1. Step 50

    50

    #F7F3FC

    oklch(97% 0.013 306)

  2. Step 100

    100

    #EEE6F9

    oklch(93.7% 0.027 304.8)

  3. Step 200

    200

    #E1D1F5

    oklch(88.5% 0.052 305.4)

  4. Step 300

    300

    #CFB1F2

    oklch(80.9% 0.095 305.4)

  5. Step 400

    400

    #B786EB

    oklch(70.7% 0.151 305.2)

  6. Step 500

    500

    #A563E4

    oklch(63% 0.192 305.1)

  7. Step 600

    600

    #9145D2

    oklch(55.6% 0.209 305.3)

  8. Step 700

    700

    #7C35B6

    oklch(49.1% 0.195 305.4)

  9. Step 800

    800

    #642E93

    oklch(42.7% 0.16 305)

  10. Step 900

    900 (this color)

    #542D78

    oklch(38.6% 0.125 305.2)

  11. Step 950

    950

    #301A45

    oklch(27.1% 0.079 305.3)

Export this scale for Tailwind in the Tailwind colors tool

#542D78 with color blindness

Simulated with the Machado et al. (2009) model. ΔE is how far the color moves: below about 0.02 you would not notice a change.

VisionSeen asShift (ΔE)
Protanopia (no red cones)#093F7A0.103
Deuteranopia (no green cones)#1D40760.092
Tritanopia (no blue cones)#4E3C4E0.091
Achromatopsia (no color)#4040400.126

Harmonies

Hue rotations in OKLCH that keep this color's lightness and chroma.

Complementary

The opposite hue (180°).

  • #542D78

    #542D78

    oklch(38.6% 0.125 305.2)

  • #384C00

    #384C00

    oklch(38.5% 0.097 125)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #542D78

    #542D78

    oklch(38.6% 0.125 305.2)

  • #333985

    #333985

    oklch(38.5% 0.126 275.4)

  • #6A235D

    #6A235D

    oklch(38.6% 0.124 335.7)

Open the analogous palette in the generator

Split complementary

The two hues beside the complement (150° and 210°).

  • #542D78

    #542D78

    oklch(38.6% 0.125 305.2)

  • #514300

    #514300

    oklch(38.6% 0.079 95.5)

  • #00522C

    #00522C

    oklch(38.5% 0.095 155)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #542D78

    #542D78

    oklch(38.6% 0.125 305.2)

  • #633800

    #633800

    oklch(38.5% 0.087 64.4)

  • #004F49

    #004F49

    oklch(38.5% 0.067 186.1)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #542D78

    #542D78

    oklch(38.6% 0.125 305.2)

  • #782109

    #782109

    oklch(38.5% 0.125 35.2)

  • #384C00

    #384C00

    oklch(38.5% 0.097 125)

  • #004D5B

    #004D5B

    oklch(38.7% 0.068 215.2)

Open the square palette in the generator

Palettes with this color

Curated palettes that contain a color within ΔE 0.04 (OKLab) of #542D78, closest first.

Similar named colors

The eight closest entries in our named color list, with their ΔE distance.

Use #542D78 in your product

Turn it into light and dark UI roles checked for contrast, then export to Tailwind v4, shadcn/ui, CSS or design tokens.