#7F5F99

Closest named color: Dark Lavender (#856798). oklch(54.1% 0.095 308.8), rgb(127, 95, 153).

Aa

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

About this color

#7F5F99 is a medium-dark, moderately saturated purple. In OKLCH its lightness is 54%, its chroma 0.095 and its hue 309°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Dark Lavender (#856798), ΔE 0.025 away. White text reads best on it, at 5.25:1.

Hue familyPurples
Lightnessmedium-dark (54%)
Chromamoderately saturated (0.095)
Temperaturein between
Nearest nameDark Lavender (#856798)
Black text3.99:1
White text5.25:1

Values

HEX#7F5F99
RGBrgb(127, 95, 153)
HSLhsl(273, 23%, 49%)
OKLCHoklch(54.1% 0.095 308.8)

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 #7F5F99 5.25:1 AA Lc -81.3 Fine for body text
Black text on #7F5F99 3.99:1 AA large text Lc 28.1 Dividers and decoration only
#7F5F99 text on white 5.25:1 AA Lc 76.0 Fine for body text
#7F5F99 text on black 3.99:1 AA large text Lc -25.7 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 600.

  1. Step 50

    50

    #F6F4F8

    oklch(97% 0.006 308.4)

  2. Step 100

    100

    #ECE8F0

    oklch(93.6% 0.011 308.3)

  3. Step 200

    200

    #DED5E5

    oklch(88.5% 0.024 310.7)

  4. Step 300

    300

    #C9BAD6

    oklch(81% 0.042 309.4)

  5. Step 400

    400

    #AD95C2

    oklch(70.7% 0.07 308.8)

  6. Step 500

    500

    #997BB2

    oklch(63.2% 0.087 308.9)

  7. Step 600

    600 (this color)

    #7F5F99

    oklch(54.1% 0.095 308.8)

  8. Step 700

    700

    #6F5287

    oklch(49.1% 0.089 308.6)

  9. Step 800

    800

    #5B436D

    oklch(42.6% 0.073 309.8)

  10. Step 900

    900

    #4A3959

    oklch(37.7% 0.057 308.2)

  11. Step 950

    950

    #2C2234

    oklch(27.2% 0.035 309.5)

Export this scale for Tailwind in the Tailwind colors tool

#7F5F99 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)#536B9B0.070
Deuteranopia (no green cones)#5B6D970.064
Tritanopia (no blue cones)#7C67750.068
Achromatopsia (no color)#6C6C6C0.095

Harmonies

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

Complementary

The opposite hue (180°).

  • #7F5F99

    #7F5F99

    oklch(54.1% 0.095 308.8)

  • #5E7A3B

    #5E7A3B

    oklch(54.2% 0.095 128.9)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #7F5F99

    #7F5F99

    oklch(54.1% 0.095 308.8)

  • #6369A5

    #6369A5

    oklch(54.2% 0.094 278.4)

  • #935881

    #935881

    oklch(54.1% 0.095 339.2)

Open the analogous palette in the generator

Split complementary

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

  • #7F5F99

    #7F5F99

    oklch(54.1% 0.095 308.8)

  • #7D6F25

    #7D6F25

    oklch(54% 0.094 98.4)

  • #36805A

    #36805A

    oklch(54.2% 0.096 158.4)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #7F5F99

    #7F5F99

    oklch(54.1% 0.095 308.8)

  • #93642A

    #93642A

    oklch(54.2% 0.095 68.8)

  • #00807A

    #00807A

    oklch(54.1% 0.094 189)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #7F5F99

    #7F5F99

    oklch(54.1% 0.095 308.8)

  • #9E5A44

    #9E5A44

    oklch(54.1% 0.096 38.7)

  • #5E7A3B

    #5E7A3B

    oklch(54.2% 0.095 128.9)

  • #0D7C94

    #0D7C94

    oklch(54.2% 0.095 218.2)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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