#7F3176

Closest named color: Light Eggplant (#894585). oklch(44.9% 0.138 332.4), rgb(127, 49, 118).

Aa

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

About this color

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

Hue familyPurples
Lightnessdark (45%)
Chromamoderately saturated (0.138)
Temperaturein between
Nearest nameLight Eggplant (#894585)
Black text2.60:1
White text8.06:1

Values

HEX#7F3176
RGBrgb(127, 49, 118)
HSLhsl(307, 44%, 35%)
OKLCHoklch(44.9% 0.138 332.4)

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 #7F3176 8.06:1 AAA Lc -92.0 Preferred for body text
Black text on #7F3176 2.60:1 Fails Lc 16.7 Dividers and decoration only
#7F3176 text on white 8.06:1 AAA Lc 87.3 Fine for body text
#7F3176 text on black 2.60:1 Fails Lc -14.8 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

    #FAF3F9

    oklch(97.1% 0.011 330.1)

  2. Step 100

    100

    #F4E4F1

    oklch(93.5% 0.024 331.9)

  3. Step 200

    200

    #ECCFE6

    oklch(88.5% 0.044 333)

  4. Step 300

    300

    #E1AED8

    oklch(81% 0.081 332.5)

  5. Step 400

    400

    #D081C4

    oklch(70.8% 0.13 332.5)

  6. Step 500

    500

    #C15EB5

    oklch(63.1% 0.165 332.1)

  7. Step 600

    600

    #AC41A0

    oklch(55.6% 0.179 332.4)

  8. Step 700

    700

    #943189

    oklch(49.1% 0.168 332.5)

  9. Step 800

    800 (this color)

    #7F3176

    oklch(44.9% 0.138 332.4)

  10. Step 900

    900

    #61285A

    oklch(37.7% 0.107 332.4)

  11. Step 950

    950

    #391835

    oklch(27% 0.068 332)

Export this scale for Tailwind in the Tailwind colors tool

#7F3176 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)#2E49780.144
Deuteranopia (no green cones)#4754740.126
Tritanopia (no blue cones)#84374F0.071
Achromatopsia (no color)#5050500.140

Harmonies

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

Complementary

The opposite hue (180°).

  • #7F3176

    #7F3176

    oklch(44.9% 0.138 332.4)

  • #006733

    #006733

    oklch(45% 0.117 152.5)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #7F3176

    #7F3176

    oklch(44.9% 0.138 332.4)

  • #653D93

    #653D93

    oklch(45% 0.138 302.7)

  • #8F2A4E

    #8F2A4E

    oklch(45% 0.138 2.8)

Open the analogous palette in the generator

Split complementary

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

  • #7F3176

    #7F3176

    oklch(44.9% 0.138 332.4)

  • #4B5E00

    #4B5E00

    oklch(45% 0.109 122.3)

  • #006359

    #006359

    oklch(44.9% 0.08 183)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #7F3176

    #7F3176

    oklch(44.9% 0.138 332.4)

  • #675300

    #675300

    oklch(45% 0.092 92.7)

  • #00606E

    #00606E

    oklch(44.9% 0.078 211.9)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #7F3176

    #7F3176

    oklch(44.9% 0.138 332.4)

  • #7C4600

    #7C4600

    oklch(44.9% 0.103 62.9)

  • #006733

    #006733

    oklch(45% 0.117 152.5)

  • #005A8B

    #005A8B

    oklch(44.9% 0.108 242.5)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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