#542F9A

Closest named color: Rebecca Purple (#663399). oklch(41.5% 0.164 293.9), rgb(84, 47, 154).

Aa

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

About this color

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

Hue familyPurples
Lightnessdark (42%)
Chromavivid (0.164)
Temperaturein between
Nearest nameRebecca Purple (#663399)
Black text2.25:1
White text9.33:1

Values

HEX#542F9A
RGBrgb(84, 47, 154)
HSLhsl(261, 53%, 39%)
OKLCHoklch(41.5% 0.164 293.9)

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 #542F9A 9.33:1 AAA Lc -95.3 Preferred for body text
Black text on #542F9A 2.25:1 Fails Lc 13.0 Not readable
#542F9A text on white 9.33:1 AAA Lc 90.9 Preferred for body text
#542F9A text on black 2.25:1 Fails Lc -11.4 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

    #F6F4FE

    oklch(97.2% 0.013 295.3)

  2. Step 100

    100

    #EAE7FB

    oklch(93.6% 0.027 292.8)

  3. Step 200

    200

    #DAD3FA

    oklch(88.5% 0.054 293.5)

  4. Step 300

    300

    #C3B5F9

    oklch(80.9% 0.096 293.6)

  5. Step 400

    400

    #A78BF6

    oklch(70.7% 0.154 294.2)

  6. Step 500

    500

    #936AF2

    oklch(63.1% 0.196 294)

  7. Step 600

    600

    #7F4CE1

    oklch(55.6% 0.214 294)

  8. Step 700

    700

    #6B3CC3

    oklch(49.1% 0.198 293.8)

  9. Step 800

    800 (this color)

    #542F9A

    oklch(41.5% 0.164 293.9)

  10. Step 900

    900

    #472E7D

    oklch(37.6% 0.128 293.9)

  11. Step 950

    950

    #291C49

    oklch(26.9% 0.08 293.6)

Export this scale for Tailwind in the Tailwind colors tool

#542F9A 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)#00489D0.099
Deuteranopia (no green cones)#0045980.099
Tritanopia (no blue cones)#4049610.128
Achromatopsia (no color)#4747470.165

Harmonies

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

Complementary

The opposite hue (180°).

  • #542F9A

    #542F9A

    oklch(41.5% 0.164 293.9)

  • #4C5100

    #4C5100

    oklch(41.6% 0.093 113.8)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #542F9A

    #542F9A

    oklch(41.5% 0.164 293.9)

  • #1A41A3

    #1A41A3

    oklch(41.4% 0.165 264)

  • #741E7D

    #741E7D

    oklch(41.6% 0.164 323.8)

Open the analogous palette in the generator

Split complementary

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

  • #542F9A

    #542F9A

    oklch(41.5% 0.164 293.9)

  • #624700

    #624700

    oklch(41.6% 0.085 83.7)

  • #005D0D

    #005D0D

    oklch(41.5% 0.135 143.9)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #542F9A

    #542F9A

    oklch(41.5% 0.164 293.9)

  • #763900

    #763900

    oklch(41.6% 0.104 54.1)

  • #005948

    #005948

    oklch(41.4% 0.079 173.9)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #542F9A

    #542F9A

    oklch(41.5% 0.164 293.9)

  • #900619

    #900619

    oklch(41.5% 0.164 24)

  • #4C5100

    #4C5100

    oklch(41.6% 0.093 113.8)

  • #00575D

    #00575D

    oklch(41.6% 0.071 202.9)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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