#7F336D

Closest named color: Light Eggplant (#894585). oklch(44.7% 0.128 337.7), rgb(127, 51, 109).

Aa

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

About this color

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

Hue familyPurples
Lightnessdark (45%)
Chromamoderately saturated (0.128)
Temperaturewarm
Nearest nameLight Eggplant (#894585)
Black text2.59:1
White text8.08:1

Values

HEX#7F336D
RGBrgb(127, 51, 109)
HSLhsl(314, 43%, 35%)
OKLCHoklch(44.7% 0.128 337.7)

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 #7F336D 8.08:1 AAA Lc -92.1 Preferred for body text
Black text on #7F336D 2.59:1 Fails Lc 16.6 Dividers and decoration only
#7F336D text on white 8.08:1 AAA Lc 87.4 Fine for body text
#7F336D text on black 2.59:1 Fails Lc -14.7 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

    #F4E5EF

    oklch(93.7% 0.021 337.7)

  3. Step 200

    200

    #ECCFE3

    oklch(88.5% 0.042 337.2)

  4. Step 300

    300

    #E1AFD2

    oklch(81% 0.074 337.5)

  5. Step 400

    400

    #D082BB

    oklch(70.6% 0.12 337.4)

  6. Step 500

    500

    #C261AA

    oklch(63.2% 0.152 337.5)

  7. Step 600

    600

    #AD4495

    oklch(55.5% 0.166 337.5)

  8. Step 700

    700

    #94357F

    oklch(49% 0.154 337.4)

  9. Step 800

    800 (this color)

    #7F336D

    oklch(44.7% 0.128 337.7)

  10. Step 900

    900

    #622954

    oklch(37.7% 0.101 337.8)

  11. Step 950

    950

    #391931

    oklch(26.9% 0.062 337.5)

Export this scale for Tailwind in the Tailwind colors tool

#7F336D 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)#35486F0.135
Deuteranopia (no green cones)#4C546B0.119
Tritanopia (no blue cones)#86364B0.061
Achromatopsia (no color)#5050500.129

Harmonies

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

Complementary

The opposite hue (180°).

  • #7F336D

    #7F336D

    oklch(44.7% 0.128 337.7)

  • #00653D

    #00653D

    oklch(44.6% 0.105 157.9)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #7F336D

    #7F336D

    oklch(44.7% 0.128 337.7)

  • #683D8A

    #683D8A

    oklch(44.7% 0.127 307.8)

  • #8C2E47

    #8C2E47

    oklch(44.7% 0.128 7.8)

Open the analogous palette in the generator

Split complementary

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

  • #7F336D

    #7F336D

    oklch(44.7% 0.128 337.7)

  • #426000

    #426000

    oklch(44.8% 0.117 127.7)

  • #00625C

    #00625C

    oklch(44.7% 0.078 187.5)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #7F336D

    #7F336D

    oklch(44.7% 0.128 337.7)

  • #635400

    #635400

    oklch(44.7% 0.092 97.2)

  • #005F72

    #005F72

    oklch(44.8% 0.08 217.7)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #7F336D

    #7F336D

    oklch(44.7% 0.128 337.7)

  • #784800

    #784800

    oklch(44.8% 0.099 67.4)

  • #00653D

    #00653D

    oklch(44.6% 0.105 157.9)

  • #005793

    #005793

    oklch(44.6% 0.121 248.2)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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