#542F87

Closest named color: Dark Slate Blue (#483D8B). oklch(40% 0.141 299.3), rgb(84, 47, 135).

Aa

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

About this color

#542F87 is a dark, vivid purple. In OKLCH its lightness is 40%, its chroma 0.141 and its hue 299°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Dark Slate Blue (#483D8B), ΔE 0.037 away. White text reads best on it, at 9.84:1.

Hue familyPurples
Lightnessdark (40%)
Chromavivid (0.141)
Temperaturein between
Nearest nameDark Slate Blue (#483D8B)
Black text2.13:1
White text9.84:1

Values

HEX#542F87
RGBrgb(84, 47, 135)
HSLhsl(265, 48%, 36%)
OKLCHoklch(40% 0.141 299.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 #542F87 9.84:1 AAA Lc -96.6 Preferred for body text
Black text on #542F87 2.13:1 Fails Lc 11.6 Not readable
#542F87 text on white 9.84:1 AAA Lc 92.4 Preferred for body text
#542F87 text on black 2.13:1 Fails Lc -10.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

    #F7F4FE

    oklch(97.2% 0.014 299.8)

  2. Step 100

    100

    #ECE6FC

    oklch(93.6% 0.03 298.3)

  3. Step 200

    200

    #DED1FB

    oklch(88.4% 0.059 299.3)

  4. Step 300

    300

    #CAB1FC

    oklch(80.8% 0.107 299.3)

  5. Step 400

    400

    #B185FA

    oklch(70.8% 0.169 299.4)

  6. Step 500

    500

    #9F60F7

    oklch(63.2% 0.217 299.3)

  7. Step 600

    600

    #8B3FE5

    oklch(55.6% 0.235 299.4)

  8. Step 700

    700

    #762FC7

    oklch(49.1% 0.218 299.3)

  9. Step 800

    800

    #6029A1

    oklch(42.7% 0.181 299.4)

  10. Step 900

    900 (this color)

    #542F87

    oklch(40% 0.141 299.3)

  11. Step 950

    950

    #2D194B

    oklch(27% 0.089 298.7)

Export this scale for Tailwind in the Tailwind colors tool

#542F87 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)#00438A0.102
Deuteranopia (no green cones)#0643850.101
Tritanopia (no blue cones)#4942560.107
Achromatopsia (no color)#4343430.142

Harmonies

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

Complementary

The opposite hue (180°).

  • #542F87

    #542F87

    oklch(40% 0.141 299.3)

  • #424E00

    #424E00

    oklch(39.9% 0.094 119.3)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #542F87

    #542F87

    oklch(40% 0.141 299.3)

  • #2A3E92

    #2A3E92

    oklch(40% 0.14 269)

  • #6E226C

    #6E226C

    oklch(40% 0.141 328.9)

Open the analogous palette in the generator

Split complementary

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

  • #542F87

    #542F87

    oklch(40% 0.141 299.3)

  • #594500

    #594500

    oklch(40% 0.082 89.8)

  • #005723

    #005723

    oklch(39.9% 0.111 149.5)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #542F87

    #542F87

    oklch(40% 0.141 299.3)

  • #6C3900

    #6C3900

    oklch(40.1% 0.095 59.5)

  • #005449

    #005449

    oklch(40% 0.072 180)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #542F87

    #542F87

    oklch(40% 0.141 299.3)

  • #831A12

    #831A12

    oklch(39.9% 0.141 29.3)

  • #424E00

    #424E00

    oklch(39.9% 0.094 119.3)

  • #00515C

    #00515C

    oklch(39.9% 0.069 210.4)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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