#7F2C9A

Closest named color: Rebecca Purple (#663399). oklch(46.5% 0.179 316.6), rgb(127, 44, 154).

Aa

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

About this color

#7F2C9A is a medium-dark, vivid purple. In OKLCH its lightness is 47%, its chroma 0.179 and its hue 317°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Rebecca Purple (#663399), ΔE 0.050 away. White text reads best on it, at 7.69:1.

Hue familyPurples
Lightnessmedium-dark (47%)
Chromavivid (0.179)
Temperaturein between
Nearest nameRebecca Purple (#663399)
Black text2.72:1
White text7.69:1

Values

HEX#7F2C9A
RGBrgb(127, 44, 154)
HSLhsl(285, 56%, 39%)
OKLCHoklch(46.5% 0.179 316.6)

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 #7F2C9A 7.69:1 AAA Lc -90.7 Preferred for body text
Black text on #7F2C9A 2.72:1 Fails Lc 18.2 Dividers and decoration only
#7F2C9A text on white 7.69:1 AAA Lc 85.9 Fine for body text
#7F2C9A text on black 2.72:1 Fails Lc -16.2 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

    #F9F3FB

    oklch(97.1% 0.012 317.7)

  2. Step 100

    100

    #F1E5F5

    oklch(93.6% 0.025 317.7)

  3. Step 200

    200

    #E6D0EF

    oklch(88.5% 0.048 316.2)

  4. Step 300

    300

    #D7B0E6

    oklch(80.9% 0.086 316.5)

  5. Step 400

    400

    #C384DA

    oklch(70.8% 0.139 316.6)

  6. Step 500

    500

    #B361CF

    oklch(63.1% 0.177 316.9)

  7. Step 600

    600

    #9E44BC

    oklch(55.6% 0.192 316.7)

  8. Step 700

    700 (this color)

    #7F2C9A

    oklch(46.5% 0.179 316.6)

  9. Step 800

    800

    #6E2D84

    oklch(42.8% 0.149 316.5)

  10. Step 900

    900

    #592A69

    oklch(37.7% 0.114 316.8)

  11. Step 950

    950

    #34193E

    oklch(27% 0.074 316.2)

Export this scale for Tailwind in the Tailwind colors tool

#7F2C9A 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)#004E9D0.170
Deuteranopia (no green cones)#2D55970.151
Tritanopia (no blue cones)#7D42600.114
Achromatopsia (no color)#5353530.180

Harmonies

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

Complementary

The opposite hue (180°).

  • #7F2C9A

    #7F2C9A

    oklch(46.5% 0.179 316.6)

  • #2F6A00

    #2F6A00

    oklch(46.6% 0.14 136.5)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #7F2C9A

    #7F2C9A

    oklch(46.5% 0.179 316.6)

  • #573FB6

    #573FB6

    oklch(46.5% 0.179 286.5)

  • #99196D

    #99196D

    oklch(46.5% 0.179 346.5)

Open the analogous palette in the generator

Split complementary

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

  • #7F2C9A

    #7F2C9A

    oklch(46.5% 0.179 316.6)

  • #615C00

    #615C00

    oklch(46.5% 0.099 106)

  • #006A4D

    #006A4D

    oklch(46.5% 0.096 166.2)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #7F2C9A

    #7F2C9A

    oklch(46.5% 0.179 316.6)

  • #785100

    #785100

    oklch(46.6% 0.098 76.8)

  • #006768

    #006768

    oklch(46.6% 0.079 195.9)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #7F2C9A

    #7F2C9A

    oklch(46.5% 0.179 316.6)

  • #913C00

    #913C00

    oklch(46.5% 0.13 46.5)

  • #2F6A00

    #2F6A00

    oklch(46.6% 0.14 136.5)

  • #006380

    #006380

    oklch(46.6% 0.09 226.6)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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