#542D7D

Closest named color: Dark Slate Blue (#483D8B). oklch(38.9% 0.131 303.3), rgb(84, 45, 125).

Aa

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

About this color

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

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

Values

HEX#542D7D
RGBrgb(84, 45, 125)
HSLhsl(269, 47%, 33%)
OKLCHoklch(38.9% 0.131 303.3)

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 #542D7D 10.25:1 AAA Lc -97.5 Preferred for body text
Black text on #542D7D 2.04:1 Fails Lc 10.6 Not readable
#542D7D text on white 10.25:1 AAA Lc 93.4 Preferred for body text
#542D7D text on black 2.04:1 Fails Lc -9.1 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

    #F7F3FD

    oklch(97% 0.014 304.1)

  2. Step 100

    100

    #EDE6FA

    oklch(93.6% 0.028 301.7)

  3. Step 200

    200

    #E0D1F8

    oklch(88.5% 0.055 302.8)

  4. Step 300

    300

    #CDB1F5

    oklch(80.8% 0.099 303.1)

  5. Step 400

    400

    #B585F0

    oklch(70.6% 0.158 303.3)

  6. Step 500

    500

    #A462EB

    oklch(63.2% 0.201 303.3)

  7. Step 600

    600

    #8F43D9

    oklch(55.6% 0.218 303.1)

  8. Step 700

    700

    #7A32BC

    oklch(49% 0.204 303.3)

  9. Step 800

    800

    #632C98

    oklch(42.7% 0.168 303.2)

  10. Step 900

    900 (this color)

    #542D7D

    oklch(38.9% 0.131 303.3)

  11. Step 950

    950

    #2F1947

    oklch(26.9% 0.084 303.3)

Export this scale for Tailwind in the Tailwind colors tool

#542D7D 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)#0040800.106
Deuteranopia (no green cones)#17417B0.096
Tritanopia (no blue cones)#4C3E500.098
Achromatopsia (no color)#4141410.132

Harmonies

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

Complementary

The opposite hue (180°).

  • #542D7D

    #542D7D

    oklch(38.9% 0.131 303.3)

  • #3B4C00

    #3B4C00

    oklch(38.8% 0.095 123)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #542D7D

    #542D7D

    oklch(38.9% 0.131 303.3)

  • #303A8A

    #303A8A

    oklch(38.9% 0.132 273.2)

  • #6B2262

    #6B2262

    oklch(38.9% 0.131 333)

Open the analogous palette in the generator

Split complementary

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

  • #542D7D

    #542D7D

    oklch(38.9% 0.131 303.3)

  • #534300

    #534300

    oklch(38.8% 0.08 93.4)

  • #00532A

    #00532A

    oklch(38.8% 0.099 153.5)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #542D7D

    #542D7D

    oklch(38.9% 0.131 303.3)

  • #653800

    #653800

    oklch(38.8% 0.089 62.9)

  • #005148

    #005148

    oklch(39% 0.07 182.2)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #542D7D

    #542D7D

    oklch(38.9% 0.131 303.3)

  • #7C1E0A

    #7C1E0A

    oklch(38.9% 0.132 33.3)

  • #3B4C00

    #3B4C00

    oklch(38.8% 0.095 123)

  • #004E5B

    #004E5B

    oklch(39% 0.068 213.7)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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