#8A3791

Closest named color: Warm Purple (#952E8F). oklch(48.7% 0.16 324.5), rgb(138, 55, 145).

Aa

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

About this color

#8A3791 is a medium-dark, vivid purple. In OKLCH its lightness is 49%, its chroma 0.160 and its hue 325°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Warm Purple (#952E8F), ΔE 0.025 away. White text reads best on it, at 6.91:1.

Hue familyPurples
Lightnessmedium-dark (49%)
Chromavivid (0.160)
Temperaturein between
Nearest nameWarm Purple (#952E8F)
Black text3.03:1
White text6.91:1

Values

HEX#8A3791
RGBrgb(138, 55, 145)
HSLhsl(295, 45%, 39%)
OKLCHoklch(48.7% 0.16 324.5)

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 #8A3791 6.91:1 AA Lc -88.3 Fine for body text
Black text on #8A3791 3.03:1 AA large text Lc 20.8 Dividers and decoration only
#8A3791 text on white 6.91:1 AA Lc 83.3 Fine for body text
#8A3791 text on black 3.03:1 AA large text Lc -18.7 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

    #F9F3F9

    oklch(97% 0.01 325.7)

  2. Step 100

    100

    #F2E5F2

    oklch(93.6% 0.022 325.8)

  3. Step 200

    200

    #E8D0E9

    oklch(88.5% 0.043 324.7)

  4. Step 300

    300

    #DAB0DD

    oklch(80.9% 0.077 324.1)

  5. Step 400

    400

    #C785CC

    oklch(70.8% 0.124 324.3)

  6. Step 500

    500

    #B863BE

    oklch(63.1% 0.159 324.8)

  7. Step 600

    600

    #A348AA

    oklch(55.7% 0.172 324.7)

  8. Step 700

    700 (this color)

    #8A3791

    oklch(48.7% 0.16 324.5)

  9. Step 800

    800

    #712F77

    oklch(42.7% 0.134 324.3)

  10. Step 900

    900

    #5C2B60

    oklch(37.8% 0.104 324.5)

  11. Step 950

    950

    #361A38

    oklch(27.1% 0.065 324.7)

Export this scale for Tailwind in the Tailwind colors tool

#8A3791 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)#2853940.160
Deuteranopia (no green cones)#465D8F0.139
Tritanopia (no blue cones)#8D445F0.094
Achromatopsia (no color)#5A5A5A0.162

Harmonies

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

Complementary

The opposite hue (180°).

  • #8A3791

    #8A3791

    oklch(48.7% 0.16 324.5)

  • #007519

    #007519

    oklch(48.9% 0.156 144.5)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #8A3791

    #8A3791

    oklch(48.7% 0.16 324.5)

  • #6846AF

    #6846AF

    oklch(48.7% 0.16 294.6)

  • #A02C65

    #A02C65

    oklch(48.9% 0.16 354.7)

Open the analogous palette in the generator

Split complementary

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

  • #8A3791

    #8A3791

    oklch(48.7% 0.16 324.5)

  • #5F6600

    #5F6600

    oklch(48.7% 0.11 114.4)

  • #00705C

    #00705C

    oklch(48.7% 0.092 174.6)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #8A3791

    #8A3791

    oklch(48.7% 0.16 324.5)

  • #7A5A00

    #7A5A00

    oklch(48.8% 0.1 84.4)

  • #006D76

    #006D76

    oklch(48.8% 0.083 204.8)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #8A3791

    #8A3791

    oklch(48.7% 0.16 324.5)

  • #924900

    #924900

    oklch(48.7% 0.121 54.8)

  • #007519

    #007519

    oklch(48.9% 0.156 144.5)

  • #006891

    #006891

    oklch(48.8% 0.103 234.5)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #8A3791 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.