#7E3172

Closest named color: Light Eggplant (#894585). oklch(44.6% 0.134 334.1), rgb(126, 49, 114).

Aa

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

About this color

#7E3172 is a dark, moderately saturated purple. In OKLCH its lightness is 45%, its chroma 0.134 and its hue 334°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Light Eggplant (#894585), ΔE 0.055 away. White text reads best on it, at 8.17:1.

Hue familyPurples
Lightnessdark (45%)
Chromamoderately saturated (0.134)
Temperaturein between
Nearest nameLight Eggplant (#894585)
Black text2.56:1
White text8.17:1

Values

HEX#7E3172
RGBrgb(126, 49, 114)
HSLhsl(309, 44%, 34%)
OKLCHoklch(44.6% 0.134 334.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 #7E3172 8.17:1 AAA Lc -92.3 Preferred for body text
Black text on #7E3172 2.56:1 Fails Lc 16.3 Dividers and decoration only
#7E3172 text on white 8.17:1 AAA Lc 87.7 Fine for body text
#7E3172 text on black 2.56:1 Fails Lc -14.5 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

    #FAF3F8

    oklch(97.1% 0.01 335.5)

  2. Step 100

    100

    #F4E5F0

    oklch(93.7% 0.022 334.9)

  3. Step 200

    200

    #ECCFE5

    oklch(88.5% 0.043 334.3)

  4. Step 300

    300

    #E1AED6

    oklch(80.9% 0.079 334)

  5. Step 400

    400

    #D081C1

    oklch(70.7% 0.127 334)

  6. Step 500

    500

    #C15FB1

    oklch(63% 0.16 333.8)

  7. Step 600

    600

    #AD429C

    oklch(55.6% 0.175 334.4)

  8. Step 700

    700

    #943386

    oklch(49.1% 0.163 333.9)

  9. Step 800

    800 (this color)

    #7E3172

    oklch(44.6% 0.134 334.1)

  10. Step 900

    900

    #612858

    oklch(37.6% 0.105 333.9)

  11. Step 950

    950

    #391834

    oklch(26.9% 0.067 333.3)

Export this scale for Tailwind in the Tailwind colors tool

#7E3172 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)#3048740.140
Deuteranopia (no green cones)#4853700.123
Tritanopia (no blue cones)#84364D0.068
Achromatopsia (no color)#4F4F4F0.136

Harmonies

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

Complementary

The opposite hue (180°).

  • #7E3172

    #7E3172

    oklch(44.6% 0.134 334.1)

  • #006536

    #006536

    oklch(44.5% 0.112 154.3)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #7E3172

    #7E3172

    oklch(44.6% 0.134 334.1)

  • #653C8F

    #653C8F

    oklch(44.5% 0.134 304.3)

  • #8D2B4B

    #8D2B4B

    oklch(44.6% 0.134 4.4)

Open the analogous palette in the generator

Split complementary

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

  • #7E3172

    #7E3172

    oklch(44.6% 0.134 334.1)

  • #475E00

    #475E00

    oklch(44.7% 0.112 124.5)

  • #006259

    #006259

    oklch(44.6% 0.079 184)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #7E3172

    #7E3172

    oklch(44.6% 0.134 334.1)

  • #655200

    #655200

    oklch(44.5% 0.091 93.4)

  • #005F6E

    #005F6E

    oklch(44.6% 0.078 213.2)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #7E3172

    #7E3172

    oklch(44.6% 0.134 334.1)

  • #7A4600

    #7A4600

    oklch(44.7% 0.101 64.1)

  • #006536

    #006536

    oklch(44.5% 0.112 154.3)

  • #00598C

    #00598C

    oklch(44.7% 0.11 243.8)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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