#542E9C

Closest named color: Rebecca Purple (#663399). oklch(41.5% 0.168 293.6), rgb(84, 46, 156).

Aa

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

About this color

#542E9C is a dark, vivid purple. In OKLCH its lightness is 42%, its chroma 0.168 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.038 away. White text reads best on it, at 9.34:1.

Hue familyPurples
Lightnessdark (42%)
Chromavivid (0.168)
Temperaturein between
Nearest nameRebecca Purple (#663399)
Black text2.24:1
White text9.34:1

Values

HEX#542E9C
RGBrgb(84, 46, 156)
HSLhsl(261, 54%, 40%)
OKLCHoklch(41.5% 0.168 293.6)

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

    #EAE7FC

    oklch(93.7% 0.028 292.4)

  3. Step 200

    200

    #DAD3FB

    oklch(88.5% 0.055 293.3)

  4. Step 300

    300

    #C3B5FA

    oklch(80.9% 0.097 293.4)

  5. Step 400

    400

    #A68BF8

    oklch(70.7% 0.156 293.4)

  6. Step 500

    500

    #9369F5

    oklch(63.2% 0.201 293.7)

  7. Step 600

    600

    #7F4BE3

    oklch(55.6% 0.218 293.8)

  8. Step 700

    700

    #6B3AC6

    oklch(49.1% 0.204 293.5)

  9. Step 800

    800 (this color)

    #542E9C

    oklch(41.5% 0.168 293.6)

  10. Step 900

    900

    #472E7F

    oklch(37.8% 0.131 293.4)

  11. Step 950

    950

    #291C4A

    oklch(27% 0.082 293.1)

Export this scale for Tailwind in the Tailwind colors tool

#542E9C 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)#00489F0.100
Deuteranopia (no green cones)#00459A0.099
Tritanopia (no blue cones)#3F4A610.133
Achromatopsia (no color)#4747470.169

Harmonies

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

Complementary

The opposite hue (180°).

  • #542E9C

    #542E9C

    oklch(41.5% 0.168 293.6)

  • #4C5100

    #4C5100

    oklch(41.6% 0.093 113.8)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #542E9C

    #542E9C

    oklch(41.5% 0.168 293.6)

  • #1741A5

    #1741A5

    oklch(41.5% 0.168 263.5)

  • #741C7E

    #741C7E

    oklch(41.5% 0.167 323.4)

Open the analogous palette in the generator

Split complementary

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

  • #542E9C

    #542E9C

    oklch(41.5% 0.168 293.6)

  • #624700

    #624700

    oklch(41.6% 0.085 83.7)

  • #005D0B

    #005D0B

    oklch(41.5% 0.136 143.6)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #542E9C

    #542E9C

    oklch(41.5% 0.168 293.6)

  • #763800

    #763800

    oklch(41.5% 0.105 53.3)

  • #005948

    #005948

    oklch(41.4% 0.079 173.9)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #542E9C

    #542E9C

    oklch(41.5% 0.168 293.6)

  • #920019

    #920019

    oklch(41.6% 0.168 23.5)

  • #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 #542E9C, closest first.

Similar named colors

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

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