#7F3399

Closest named color: Warm Purple (#952E8F). oklch(47.2% 0.169 316.3), rgb(127, 51, 153).

Aa

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

About this color

#7F3399 is a medium-dark, vivid purple. In OKLCH its lightness is 47%, its chroma 0.169 and its hue 316°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Warm Purple (#952E8F), ΔE 0.047 away. White text reads best on it, at 7.40:1.

Hue familyPurples
Lightnessmedium-dark (47%)
Chromavivid (0.169)
Temperaturein between
Nearest nameWarm Purple (#952E8F)
Black text2.83:1
White text7.40:1

Values

HEX#7F3399
RGBrgb(127, 51, 153)
HSLhsl(285, 50%, 40%)
OKLCHoklch(47.2% 0.169 316.3)

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 #7F3399 7.40:1 AAA Lc -89.9 Fine for body text
Black text on #7F3399 2.83:1 Fails Lc 19.0 Dividers and decoration only
#7F3399 text on white 7.40:1 AAA Lc 85.0 Fine for body text
#7F3399 text on black 2.83:1 Fails Lc -17.0 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 700.

  1. Step 50

    50

    #F8F3FA

    oklch(97% 0.011 316.5)

  2. Step 100

    100

    #F0E5F5

    oklch(93.5% 0.024 315.5)

  3. Step 200

    200

    #E5D0EE

    oklch(88.4% 0.046 315.8)

  4. Step 300

    300

    #D6B1E4

    oklch(80.9% 0.081 316.7)

  5. Step 400

    400

    #C186D7

    oklch(70.8% 0.131 316.5)

  6. Step 500

    500

    #B065CC

    oklch(63.1% 0.166 316.2)

  7. Step 600

    600

    #9B49B9

    oklch(55.6% 0.181 316)

  8. Step 700

    700 (this color)

    #7F3399

    oklch(47.2% 0.169 316.3)

  9. Step 800

    800

    #6C3081

    oklch(42.7% 0.14 316.4)

  10. Step 900

    900

    #582C67

    oklch(37.8% 0.108 316.8)

  11. Step 950

    950

    #331A3D

    oklch(26.9% 0.07 315.6)

Export this scale for Tailwind in the Tailwind colors tool

#7F3399 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)#06519C0.163
Deuteranopia (no green cones)#3458970.140
Tritanopia (no blue cones)#7E46610.110
Achromatopsia (no color)#5555550.170

Harmonies

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

Complementary

The opposite hue (180°).

  • #7F3399

    #7F3399

    oklch(47.2% 0.169 316.3)

  • #316C00

    #316C00

    oklch(47.3% 0.141 136.2)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #7F3399

    #7F3399

    oklch(47.2% 0.169 316.3)

  • #5844B3

    #5844B3

    oklch(47.2% 0.168 286.3)

  • #98246E

    #98246E

    oklch(47.1% 0.168 346.4)

Open the analogous palette in the generator

Split complementary

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

  • #7F3399

    #7F3399

    oklch(47.2% 0.169 316.3)

  • #635E00

    #635E00

    oklch(47.1% 0.101 106.1)

  • #006C4F

    #006C4F

    oklch(47.1% 0.097 166.6)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #7F3399

    #7F3399

    oklch(47.2% 0.169 316.3)

  • #7B5200

    #7B5200

    oklch(47.2% 0.099 75.6)

  • #00696A

    #00696A

    oklch(47.2% 0.08 195.9)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #7F3399

    #7F3399

    oklch(47.2% 0.169 316.3)

  • #943D00

    #943D00

    oklch(47.1% 0.132 46.3)

  • #316C00

    #316C00

    oklch(47.3% 0.141 136.2)

  • #006582

    #006582

    oklch(47.2% 0.09 226.1)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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