#542EA0

Closest named color: Rebecca Purple (#663399). oklch(41.9% 0.173 292.6), rgb(84, 46, 160).

Aa

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

About this color

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

Hue familyPurples
Lightnessdark (42%)
Chromavivid (0.173)
Temperaturein between
Nearest nameRebecca Purple (#663399)
Black text2.27:1
White text9.22:1

Values

HEX#542EA0
RGBrgb(84, 46, 160)
HSLhsl(260, 55%, 40%)
OKLCHoklch(41.9% 0.173 292.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 #542EA0 9.22:1 AAA Lc -95.0 Preferred for body text
Black text on #542EA0 2.27:1 Fails Lc 13.4 Not readable
#542EA0 text on white 9.22:1 AAA Lc 90.6 Preferred for body text
#542EA0 text on black 2.27:1 Fails Lc -11.7 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

    #F5F4FE

    oklch(97.1% 0.013 290.8)

  2. Step 100

    100

    #EAE7FC

    oklch(93.7% 0.028 292.4)

  3. Step 200

    200

    #DAD3FC

    oklch(88.5% 0.056 293)

  4. Step 300

    300

    #C2B5FD

    oklch(81% 0.101 292.3)

  5. Step 400

    400

    #A58AFB

    oklch(70.6% 0.162 292.8)

  6. Step 500

    500

    #9168F9

    oklch(63.1% 0.207 292.5)

  7. Step 600

    600

    #7D49E7

    oklch(55.5% 0.224 292.7)

  8. Step 700

    700

    #6A39C9

    oklch(49.1% 0.208 292.6)

  9. Step 800

    800 (this color)

    #542EA0

    oklch(41.9% 0.173 292.6)

  10. Step 900

    900

    #462D81

    oklch(37.6% 0.135 292.4)

  11. Step 950

    950

    #291B4C

    oklch(27% 0.087 292.8)

Export this scale for Tailwind in the Tailwind colors tool

#542EA0 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)#0049A30.099
Deuteranopia (no green cones)#00459E0.098
Tritanopia (no blue cones)#3D4B640.136
Achromatopsia (no color)#4747470.174

Harmonies

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

Complementary

The opposite hue (180°).

  • #542EA0

    #542EA0

    oklch(41.9% 0.173 292.6)

  • #4E5100

    #4E5100

    oklch(41.8% 0.093 112.2)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #542EA0

    #542EA0

    oklch(41.9% 0.173 292.6)

  • #1242A9

    #1242A9

    oklch(41.9% 0.173 262.7)

  • #761B82

    #761B82

    oklch(42% 0.173 322.7)

Open the analogous palette in the generator

Split complementary

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

  • #542EA0

    #542EA0

    oklch(41.9% 0.173 292.6)

  • #644700

    #644700

    oklch(41.9% 0.086 81.8)

  • #005E01

    #005E01

    oklch(41.8% 0.142 142.6)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #542EA0

    #542EA0

    oklch(41.9% 0.173 292.6)

  • #783800

    #783800

    oklch(41.8% 0.107 52.4)

  • #005B48

    #005B48

    oklch(42% 0.081 172.2)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #542EA0

    #542EA0

    oklch(41.9% 0.173 292.6)

  • #93001C

    #93001C

    oklch(41.9% 0.169 22.6)

  • #4E5100

    #4E5100

    oklch(41.8% 0.093 112.2)

  • #00585E

    #00585E

    oklch(41.9% 0.071 202.8)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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