#542F82

Closest named color: Dark Slate Blue (#483D8B). oklch(39.6% 0.135 301), rgb(84, 47, 130).

Aa

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

About this color

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

Hue familyPurples
Lightnessdark (40%)
Chromamoderately saturated (0.135)
Temperaturein between
Nearest nameDark Slate Blue (#483D8B)
Black text2.10:1
White text9.97:1

Values

HEX#542F82
RGBrgb(84, 47, 130)
HSLhsl(267, 47%, 35%)
OKLCHoklch(39.6% 0.135 301)

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 #542F82 9.97:1 AAA Lc -96.9 Preferred for body text
Black text on #542F82 2.10:1 Fails Lc 11.2 Not readable
#542F82 text on white 9.97:1 AAA Lc 92.7 Preferred for body text
#542F82 text on black 2.10:1 Fails Lc -9.7 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

    #F7F4FD

    oklch(97.2% 0.012 301.3)

  2. Step 100

    100

    #EDE6FB

    oklch(93.7% 0.029 301)

  3. Step 200

    200

    #DFD1F9

    oklch(88.5% 0.056 301.2)

  4. Step 300

    300

    #CBB2F8

    oklch(80.9% 0.1 300.6)

  5. Step 400

    400

    #B286F4

    oklch(70.7% 0.161 300.8)

  6. Step 500

    500

    #A062F0

    oklch(63.1% 0.206 300.8)

  7. Step 600

    600

    #8C42DE

    oklch(55.5% 0.224 300.9)

  8. Step 700

    700

    #7732C1

    oklch(49% 0.208 300.8)

  9. Step 800

    800

    #612B9C

    oklch(42.6% 0.173 301.1)

  10. Step 900

    900 (this color)

    #542F82

    oklch(39.6% 0.135 301)

  11. Step 950

    950

    #2E1949

    oklch(26.9% 0.086 300.9)

Export this scale for Tailwind in the Tailwind colors tool

#542F82 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)#0042850.103
Deuteranopia (no green cones)#1242800.096
Tritanopia (no blue cones)#4A41540.101
Achromatopsia (no color)#4242420.136

Harmonies

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

Complementary

The opposite hue (180°).

  • #542F82

    #542F82

    oklch(39.6% 0.135 301)

  • #3F4E00

    #3F4E00

    oklch(39.7% 0.096 121.4)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #542F82

    #542F82

    oklch(39.6% 0.135 301)

  • #2E3D8E

    #2E3D8E

    oklch(39.7% 0.135 271)

  • #6D2367

    #6D2367

    oklch(39.6% 0.135 331.2)

Open the analogous palette in the generator

Split complementary

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

  • #542F82

    #542F82

    oklch(39.6% 0.135 301)

  • #574400

    #574400

    oklch(39.6% 0.081 90.6)

  • #005626

    #005626

    oklch(39.6% 0.107 150.8)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #542F82

    #542F82

    oklch(39.6% 0.135 301)

  • #693900

    #693900

    oklch(39.6% 0.092 61.4)

  • #005349

    #005349

    oklch(39.7% 0.071 181.2)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #542F82

    #542F82

    oklch(39.6% 0.135 301)

  • #7F1E11

    #7F1E11

    oklch(39.5% 0.134 31)

  • #3F4E00

    #3F4E00

    oklch(39.7% 0.096 121.4)

  • #00505B

    #00505B

    oklch(39.5% 0.069 210.6)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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