#7F3166

Closest named color: Mulberry (#920A4E). oklch(44.1% 0.126 342), rgb(127, 49, 102).

Aa

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

About this color

#7F3166 is a dark, moderately saturated purple. In OKLCH its lightness is 44%, its chroma 0.126 and its hue 342°. Its hue sits on the warm side of the wheel. The nearest named color is Mulberry (#920A4E), ΔE 0.062 away. White text reads best on it, at 8.28:1.

Hue familyPurples
Lightnessdark (44%)
Chromamoderately saturated (0.126)
Temperaturewarm
Nearest nameMulberry (#920A4E)
Black text2.53:1
White text8.28:1

Values

HEX#7F3166
RGBrgb(127, 49, 102)
HSLhsl(319, 44%, 35%)
OKLCHoklch(44.1% 0.126 342)

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 #7F3166 8.28:1 AAA Lc -92.7 Preferred for body text
Black text on #7F3166 2.53:1 Fails Lc 16.0 Dividers and decoration only
#7F3166 text on white 8.28:1 AAA Lc 88.0 Fine for body text
#7F3166 text on black 2.53:1 Fails Lc -14.1 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

    #FAF3F7

    oklch(97.1% 0.009 341.8)

  2. Step 100

    100

    #F5E5EE

    oklch(93.7% 0.021 342.5)

  3. Step 200

    200

    #EDCFE1

    oklch(88.5% 0.041 341.3)

  4. Step 300

    300

    #E3AECE

    oklch(80.9% 0.074 342)

  5. Step 400

    400

    #D282B5

    oklch(70.6% 0.117 341.8)

  6. Step 500

    500

    #C560A3

    oklch(63.1% 0.151 341.9)

  7. Step 600

    600

    #B0448E

    oklch(55.7% 0.164 341.9)

  8. Step 700

    700

    #973578

    oklch(49.1% 0.152 342.3)

  9. Step 800

    800 (this color)

    #7F3166

    oklch(44.1% 0.126 342)

  10. Step 900

    900

    #632950

    oklch(37.7% 0.098 341.9)

  11. Step 950

    950

    #3A192F

    oklch(27% 0.061 341.5)

Export this scale for Tailwind in the Tailwind colors tool

#7F3166 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)#3646680.135
Deuteranopia (no green cones)#4D53640.120
Tritanopia (no blue cones)#8732470.055
Achromatopsia (no color)#4E4E4E0.127

Harmonies

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

Complementary

The opposite hue (180°).

  • #7F3166

    #7F3166

    oklch(44.1% 0.126 342)

  • #006342

    #006342

    oklch(44.2% 0.097 162)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #7F3166

    #7F3166

    oklch(44.1% 0.126 342)

  • #6A3A84

    #6A3A84

    oklch(44.1% 0.126 312.3)

  • #8A2E40

    #8A2E40

    oklch(44.2% 0.125 12.2)

Open the analogous palette in the generator

Split complementary

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

  • #7F3166

    #7F3166

    oklch(44.1% 0.126 342)

  • #386000

    #386000

    oklch(44.2% 0.123 132)

  • #00605E

    #00605E

    oklch(44.2% 0.076 192.3)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #7F3166

    #7F3166

    oklch(44.1% 0.126 342)

  • #5D5400

    #5D5400

    oklch(44.1% 0.092 102.3)

  • #005C73

    #005C73

    oklch(44% 0.082 222.5)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #7F3166

    #7F3166

    oklch(44.1% 0.126 342)

  • #724900

    #724900

    oklch(44.1% 0.094 72.7)

  • #006342

    #006342

    oklch(44.2% 0.097 162)

  • #0B5495

    #0B5495

    oklch(44.2% 0.125 251.8)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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