#8042A7

Closest named color: Purply (#983FB2). oklch(50.2% 0.162 310.1), rgb(128, 66, 167).

Aa

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

About this color

#8042A7 is a medium-dark, vivid purple. In OKLCH its lightness is 50%, its chroma 0.162 and its hue 310°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Purply (#983FB2), ΔE 0.048 away. White text reads best on it, at 6.45:1.

Hue familyPurples
Lightnessmedium-dark (50%)
Chromavivid (0.162)
Temperaturein between
Nearest namePurply (#983FB2)
Black text3.25:1
White text6.45:1

Values

HEX#8042A7
RGBrgb(128, 66, 167)
HSLhsl(277, 43%, 46%)
OKLCHoklch(50.2% 0.162 310.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 #8042A7 6.45:1 AA Lc -86.7 Fine for body text
Black text on #8042A7 3.25:1 AA large text Lc 22.5 Dividers and decoration only
#8042A7 text on white 6.45:1 AA Lc 81.6 Fine for body text
#8042A7 text on black 3.25:1 AA large text Lc -20.3 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

    #F8F4FB

    oklch(97.2% 0.01 311.2)

  2. Step 100

    100

    #EEE6F5

    oklch(93.6% 0.022 309.6)

  3. Step 200

    200

    #E2D2EF

    oklch(88.6% 0.043 310.1)

  4. Step 300

    300

    #D0B3E7

    oklch(80.9% 0.078 309.9)

  5. Step 400

    400

    #B98ADB

    oklch(70.8% 0.125 310.1)

  6. Step 500

    500

    #A76AD0

    oklch(63.1% 0.159 310.2)

  7. Step 600

    600

    #924FBD

    oklch(55.6% 0.173 310.1)

  8. Step 700

    700 (this color)

    #8042A7

    oklch(50.2% 0.162 310.1)

  9. Step 800

    800

    #653484

    oklch(42.6% 0.134 310.2)

  10. Step 900

    900

    #532F6A

    oklch(37.8% 0.104 310.5)

  11. Step 950

    950

    #301C3E

    oklch(27% 0.066 309.8)

Export this scale for Tailwind in the Tailwind colors tool

#8042A7 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)#1B5CAA0.141
Deuteranopia (no green cones)#375FA50.124
Tritanopia (no blue cones)#7B556E0.112
Achromatopsia (no color)#5E5E5E0.163

Harmonies

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

Complementary

The opposite hue (180°).

  • #8042A7

    #8042A7

    oklch(50.2% 0.162 310.1)

  • #497200

    #497200

    oklch(50.2% 0.135 130.1)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #8042A7

    #8042A7

    oklch(50.2% 0.162 310.1)

  • #5653BC

    #5653BC

    oklch(50.3% 0.161 280.2)

  • #9C3480

    #9C3480

    oklch(50.2% 0.162 340.1)

Open the analogous palette in the generator

Split complementary

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

  • #8042A7

    #8042A7

    oklch(50.2% 0.162 310.1)

  • #726400

    #726400

    oklch(50.1% 0.104 99.7)

  • #00774D

    #00774D

    oklch(50.2% 0.113 160.2)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #8042A7

    #8042A7

    oklch(50.2% 0.162 310.1)

  • #8A5700

    #8A5700

    oklch(50.2% 0.108 70.5)

  • #00736F

    #00736F

    oklch(50.1% 0.086 190.5)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #8042A7

    #8042A7

    oklch(50.2% 0.162 310.1)

  • #AA3900

    #AA3900

    oklch(50.3% 0.158 40)

  • #497200

    #497200

    oklch(50.2% 0.135 130.1)

  • #006F88

    #006F88

    oklch(50.1% 0.092 220.6)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #8042A7 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.