#542C72

Closest named color: Dark Slate Blue (#483D8B). oklch(38% 0.119 308.1), rgb(84, 44, 114).

Aa

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

About this color

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

Hue familyPurples
Lightnessdark (38%)
Chromamoderately saturated (0.119)
Temperaturein between
Nearest nameDark Slate Blue (#483D8B)
Black text1.98:1
White text10.60:1

Values

HEX#542C72
RGBrgb(84, 44, 114)
HSLhsl(274, 44%, 31%)
OKLCHoklch(38% 0.119 308.1)

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 #542C72 10.60:1 AAA Lc -98.2 Preferred for body text
Black text on #542C72 1.98:1 Fails Lc 9.7 Not readable
#542C72 text on white 10.60:1 AAA Lc 94.2 Preferred for body text
#542C72 text on black 1.98:1 Fails Lc -8.3 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

    #F8F3FC

    oklch(97.1% 0.013 310.5)

  2. Step 100

    100

    #EFE6F8

    oklch(93.7% 0.026 308.2)

  3. Step 200

    200

    #E2D1F3

    oklch(88.5% 0.049 307.8)

  4. Step 300

    300

    #D1B1EE

    oklch(80.9% 0.091 308.3)

  5. Step 400

    400

    #B986E5

    oklch(70.6% 0.144 307.8)

  6. Step 500

    500

    #A864DD

    oklch(63% 0.183 307.9)

  7. Step 600

    600

    #9447CA

    oklch(55.6% 0.199 308.3)

  8. Step 700

    700

    #7E37AF

    oklch(49.1% 0.185 308.1)

  9. Step 800

    800

    #662F8E

    oklch(42.7% 0.153 307.8)

  10. Step 900

    900 (this color)

    #542C72

    oklch(38% 0.119 308.1)

  11. Step 950

    950

    #311A42

    oklch(27% 0.076 308.7)

Export this scale for Tailwind in the Tailwind colors tool

#542C72 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)#113D740.101
Deuteranopia (no green cones)#223F700.090
Tritanopia (no blue cones)#50394A0.085
Achromatopsia (no color)#3F3F3F0.120

Harmonies

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

Complementary

The opposite hue (180°).

  • #542C72

    #542C72

    oklch(38% 0.119 308.1)

  • #324B00

    #324B00

    oklch(37.8% 0.099 128.2)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #542C72

    #542C72

    oklch(38% 0.119 308.1)

  • #363780

    #363780

    oklch(37.9% 0.12 278.4)

  • #682358

    #682358

    oklch(38% 0.119 337.9)

Open the analogous palette in the generator

Split complementary

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

  • #542C72

    #542C72

    oklch(38% 0.119 308.1)

  • #4D4200

    #4D4200

    oklch(37.9% 0.078 98.5)

  • #00502F

    #00502F

    oklch(38% 0.089 157.7)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #542C72

    #542C72

    oklch(38% 0.119 308.1)

  • #5F3800

    #5F3800

    oklch(38% 0.084 67.5)

  • #004D49

    #004D49

    oklch(37.9% 0.066 188.8)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #542C72

    #542C72

    oklch(38% 0.119 308.1)

  • #742305

    #742305

    oklch(38% 0.12 37.9)

  • #324B00

    #324B00

    oklch(37.8% 0.099 128.2)

  • #004B5A

    #004B5A

    oklch(38.1% 0.068 217)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #542C72 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.