#542F93

Closest named color: Rebecca Purple (#663399). oklch(40.9% 0.156 295.7), rgb(84, 47, 147).

Aa

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

About this color

#542F93 is a dark, vivid purple. In OKLCH its lightness is 41%, its chroma 0.156 and its hue 296°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Rebecca Purple (#663399), ΔE 0.038 away. White text reads best on it, at 9.52:1.

Hue familyPurples
Lightnessdark (41%)
Chromavivid (0.156)
Temperaturein between
Nearest nameRebecca Purple (#663399)
Black text2.20:1
White text9.52:1

Values

HEX#542F93
RGBrgb(84, 47, 147)
HSLhsl(262, 52%, 38%)
OKLCHoklch(40.9% 0.156 295.7)

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 #542F93 9.52:1 AAA Lc -95.8 Preferred for body text
Black text on #542F93 2.20:1 Fails Lc 12.5 Not readable
#542F93 text on white 9.52:1 AAA Lc 91.5 Preferred for body text
#542F93 text on black 2.20:1 Fails Lc -10.9 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 800.

  1. Step 50

    50

    #F6F4FD

    oklch(97.1% 0.012 296.4)

  2. Step 100

    100

    #EBE7FA

    oklch(93.7% 0.026 295.5)

  3. Step 200

    200

    #DBD3F8

    oklch(88.5% 0.051 295.2)

  4. Step 300

    300

    #C5B5F5

    oklch(80.9% 0.091 295.8)

  5. Step 400

    400

    #A98CF1

    oklch(70.8% 0.146 295.7)

  6. Step 500

    500

    #956BEB

    oklch(63% 0.186 295.7)

  7. Step 600

    600

    #814FDA

    oklch(55.7% 0.202 295.6)

  8. Step 700

    700

    #6D3EBD

    oklch(49.1% 0.189 295.6)

  9. Step 800

    800 (this color)

    #542F93

    oklch(40.9% 0.156 295.7)

  10. Step 900

    900

    #492F79

    oklch(37.7% 0.121 296.3)

  11. Step 950

    950

    #2A1C47

    oklch(26.9% 0.077 295.8)

Export this scale for Tailwind in the Tailwind colors tool

#542F93 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)#0046960.100
Deuteranopia (no green cones)#0044910.100
Tritanopia (no blue cones)#44475D0.121
Achromatopsia (no color)#4545450.157

Harmonies

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

Complementary

The opposite hue (180°).

  • #542F93

    #542F93

    oklch(40.9% 0.156 295.7)

  • #485000

    #485000

    oklch(41% 0.094 116.2)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #542F93

    #542F93

    oklch(40.9% 0.156 295.7)

  • #21409D

    #21409D

    oklch(40.9% 0.156 265.7)

  • #721F76

    #721F76

    oklch(40.9% 0.156 326)

Open the analogous palette in the generator

Split complementary

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

  • #542F93

    #542F93

    oklch(40.9% 0.156 295.7)

  • #5E4600

    #5E4600

    oklch(40.9% 0.084 86.2)

  • #005B17

    #005B17

    oklch(41% 0.127 145.6)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #542F93

    #542F93

    oklch(40.9% 0.156 295.7)

  • #723900

    #723900

    oklch(41% 0.1 56.1)

  • #005748

    #005748

    oklch(40.8% 0.076 175.7)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #542F93

    #542F93

    oklch(40.9% 0.156 295.7)

  • #8B1017

    #8B1017

    oklch(40.9% 0.155 25.6)

  • #485000

    #485000

    oklch(41% 0.094 116.2)

  • #00555D

    #00555D

    oklch(41% 0.07 205.8)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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