#7F408A

Closest named color: Light Eggplant (#894585). oklch(48.1% 0.133 321.5), rgb(127, 64, 138).

Aa

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

About this color

#7F408A is a medium-dark, moderately saturated purple. In OKLCH its lightness is 48%, its chroma 0.133 and its hue 321°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Light Eggplant (#894585), ΔE 0.027 away. White text reads best on it, at 6.99:1.

Hue familyPurples
Lightnessmedium-dark (48%)
Chromamoderately saturated (0.133)
Temperaturein between
Nearest nameLight Eggplant (#894585)
Black text3.00:1
White text6.99:1

Values

HEX#7F408A
RGBrgb(127, 64, 138)
HSLhsl(291, 37%, 40%)
OKLCHoklch(48.1% 0.133 321.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 #7F408A 6.99:1 AA Lc -88.8 Fine for body text
Black text on #7F408A 3.00:1 AA large text Lc 20.2 Dividers and decoration only
#7F408A text on white 6.99:1 AA Lc 83.8 Fine for body text
#7F408A text on black 3.00:1 AA large text Lc -18.1 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

    #F8F4F9

    oklch(97.2% 0.008 319.4)

  2. Step 100

    100

    #F0E6F1

    oklch(93.6% 0.018 323)

  3. Step 200

    200

    #E5D2E8

    oklch(88.6% 0.036 321.6)

  4. Step 300

    300

    #D4B3DA

    oklch(80.8% 0.065 321.1)

  5. Step 400

    400

    #BE8BC7

    oklch(70.7% 0.102 321.3)

  6. Step 500

    500

    #AE6DB9

    oklch(63.2% 0.131 321.6)

  7. Step 600

    600

    #9953A5

    oklch(55.7% 0.143 321.6)

  8. Step 700

    700 (this color)

    #7F408A

    oklch(48.1% 0.133 321.5)

  9. Step 800

    800

    #6A3873

    oklch(42.8% 0.11 321.3)

  10. Step 900

    900

    #56315D

    oklch(37.8% 0.085 321.1)

  11. Step 950

    950

    #321D36

    oklch(26.9% 0.053 321)

Export this scale for Tailwind in the Tailwind colors tool

#7F408A 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)#34558C0.125
Deuteranopia (no green cones)#485C880.111
Tritanopia (no blue cones)#804A5F0.081
Achromatopsia (no color)#5959590.134

Harmonies

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

Complementary

The opposite hue (180°).

  • #7F408A

    #7F408A

    oklch(48.1% 0.133 321.5)

  • #296F20

    #296F20

    oklch(48% 0.133 141.5)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #7F408A

    #7F408A

    oklch(48.1% 0.133 321.5)

  • #604CA2

    #604CA2

    oklch(48% 0.134 291.2)

  • #933866

    #933866

    oklch(48.1% 0.133 351.8)

Open the analogous palette in the generator

Split complementary

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

  • #7F408A

    #7F408A

    oklch(48.1% 0.133 321.5)

  • #606300

    #606300

    oklch(48.1% 0.106 111.8)

  • #006E57

    #006E57

    oklch(47.9% 0.093 171.7)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #7F408A

    #7F408A

    oklch(48.1% 0.133 321.5)

  • #7A5700

    #7A5700

    oklch(48.1% 0.099 81.4)

  • #006B71

    #006B71

    oklch(48% 0.082 201.6)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #7F408A

    #7F408A

    oklch(48.1% 0.133 321.5)

  • #934500

    #934500

    oklch(48.2% 0.125 51.6)

  • #296F20

    #296F20

    oklch(48% 0.133 141.5)

  • #00678B

    #00678B

    oklch(48.2% 0.097 231.3)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #7F408A 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.