#8540B9

Closest named color: Purply (#983FB2). oklch(51.8% 0.186 307.3), rgb(133, 64, 185).

Aa

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

About this color

#8540B9 is a medium-dark, vivid purple. In OKLCH its lightness is 52%, its chroma 0.186 and its hue 307°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Purply (#983FB2), ΔE 0.039 away. White text reads best on it, at 6.12:1.

Hue familyPurples
Lightnessmedium-dark (52%)
Chromavivid (0.186)
Temperaturein between
Nearest namePurply (#983FB2)
Black text3.43:1
White text6.12:1

Values

HEX#8540B9
RGBrgb(133, 64, 185)
HSLhsl(274, 49%, 49%)
OKLCHoklch(51.8% 0.186 307.3)

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 #8540B9 6.12:1 AA Lc -85.1 Fine for body text
Black text on #8540B9 3.43:1 AA large text Lc 24.1 Dividers and decoration only
#8540B9 text on white 6.12:1 AA Lc 79.9 Fine for body text
#8540B9 text on black 3.43:1 AA large text Lc -21.9 Dividers and decoration only

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 700.

  1. Step 50

    50

    #F7F3FC

    oklch(97% 0.013 306)

  2. Step 100

    100

    #EEE6F8

    oklch(93.6% 0.025 305.8)

  3. Step 200

    200

    #E2D1F3

    oklch(88.5% 0.049 307.8)

  4. Step 300

    300

    #D0B2EE

    oklch(81% 0.089 307.2)

  5. Step 400

    400

    #B986E6

    oklch(70.7% 0.145 307.5)

  6. Step 500

    500

    #A764DE

    oklch(63% 0.184 307.3)

  7. Step 600

    600

    #9347CC

    oklch(55.6% 0.201 307.3)

  8. Step 700

    700 (this color)

    #8540B9

    oklch(51.8% 0.186 307.3)

  9. Step 800

    800

    #662F8F

    oklch(42.8% 0.155 307.4)

  10. Step 900

    900

    #532B72

    oklch(37.7% 0.121 307.6)

  11. Step 950

    950

    #301A43

    oklch(26.9% 0.077 306.7)

Export this scale for Tailwind in the Tailwind colors tool

#8540B9 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)#005FBD0.156
Deuteranopia (no green cones)#2662B60.145
Tritanopia (no blue cones)#7D59770.131
Achromatopsia (no color)#6262620.187

Harmonies

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

Complementary

The opposite hue (180°).

  • #8540B9

    #8540B9

    oklch(51.8% 0.186 307.3)

  • #537500

    #537500

    oklch(51.7% 0.133 127.1)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #8540B9

    #8540B9

    oklch(51.8% 0.186 307.3)

  • #5354D0

    #5354D0

    oklch(51.8% 0.187 277.3)

  • #A62E8E

    #A62E8E

    oklch(51.8% 0.186 337.2)

Open the analogous palette in the generator

Split complementary

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

  • #8540B9

    #8540B9

    oklch(51.8% 0.186 307.3)

  • #796800

    #796800

    oklch(51.8% 0.107 97.9)

  • #007D4B

    #007D4B

    oklch(51.9% 0.123 157.2)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #8540B9

    #8540B9

    oklch(51.8% 0.186 307.3)

  • #935900

    #935900

    oklch(51.8% 0.114 67.1)

  • #007971

    #007971

    oklch(51.9% 0.091 186.8)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #8540B9

    #8540B9

    oklch(51.8% 0.186 307.3)

  • #B53500

    #B53500

    oklch(51.7% 0.172 37.3)

  • #537500

    #537500

    oklch(51.7% 0.133 127.1)

  • #00758B

    #00758B

    oklch(51.9% 0.093 216.9)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #8540B9 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.