#542E96

Closest named color: Rebecca Purple (#663399). oklch(41% 0.161 295.1), rgb(84, 46, 150).

Aa

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

About this color

#542E96 is a dark, vivid purple. In OKLCH its lightness is 41%, its chroma 0.161 and its hue 295°. 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.51:1.

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

Values

HEX#542E96
RGBrgb(84, 46, 150)
HSLhsl(262, 53%, 38%)
OKLCHoklch(41% 0.161 295.1)

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 #542E96 9.51:1 AAA Lc -95.7 Preferred for body text
Black text on #542E96 2.20:1 Fails Lc 12.5 Not readable
#542E96 text on white 9.51:1 AAA Lc 91.4 Preferred for body text
#542E96 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

    #EBE7FB

    oklch(93.7% 0.027 295)

  3. Step 200

    200

    #DBD3F9

    oklch(88.5% 0.052 295)

  4. Step 300

    300

    #C5B5F7

    oklch(80.9% 0.093 295.4)

  5. Step 400

    400

    #A88BF3

    oklch(70.6% 0.15 295.1)

  6. Step 500

    500

    #956AEF

    oklch(63.1% 0.192 295.2)

  7. Step 600

    600

    #804DDD

    oklch(55.5% 0.208 295)

  8. Step 700

    700

    #6D3CC0

    oklch(49% 0.195 295.3)

  9. Step 800

    800 (this color)

    #542E96

    oklch(41% 0.161 295.1)

  10. Step 900

    900

    #482F7C

    oklch(37.8% 0.125 294.6)

  11. Step 950

    950

    #2A1C48

    oklch(26.9% 0.079 295.3)

Export this scale for Tailwind in the Tailwind colors tool

#542E96 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)#0046990.100
Deuteranopia (no green cones)#0044940.100
Tritanopia (no blue cones)#42475E0.125
Achromatopsia (no color)#4646460.162

Harmonies

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

Complementary

The opposite hue (180°).

  • #542E96

    #542E96

    oklch(41% 0.161 295.1)

  • #495000

    #495000

    oklch(41.1% 0.093 115.4)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #542E96

    #542E96

    oklch(41% 0.161 295.1)

  • #1E40A0

    #1E40A0

    oklch(41.1% 0.161 265)

  • #731D79

    #731D79

    oklch(41.1% 0.162 325.1)

Open the analogous palette in the generator

Split complementary

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

  • #542E96

    #542E96

    oklch(41% 0.161 295.1)

  • #5F4600

    #5F4600

    oklch(41% 0.084 85.2)

  • #005B15

    #005B15

    oklch(41% 0.128 145.2)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #542E96

    #542E96

    oklch(41% 0.161 295.1)

  • #733800

    #733800

    oklch(41% 0.102 54.7)

  • #005848

    #005848

    oklch(41.1% 0.078 174.8)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #542E96

    #542E96

    oklch(41% 0.161 295.1)

  • #8D0916

    #8D0916

    oklch(40.9% 0.16 25.1)

  • #495000

    #495000

    oklch(41.1% 0.093 115.4)

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

Similar named colors

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

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