#7F31AD

Closest named color: Grape (#7209B7). oklch(48.4% 0.191 309.8), rgb(127, 49, 173).

Aa

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

About this color

#7F31AD is a medium-dark, vivid purple. In OKLCH its lightness is 48%, its chroma 0.191 and its hue 310°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Grape (#7209B7), ΔE 0.056 away. White text reads best on it, at 7.13:1.

Hue familyPurples
Lightnessmedium-dark (48%)
Chromavivid (0.191)
Temperaturein between
Nearest nameGrape (#7209B7)
Black text2.94:1
White text7.13:1

Values

HEX#7F31AD
RGBrgb(127, 49, 173)
HSLhsl(278, 56%, 44%)
OKLCHoklch(48.4% 0.191 309.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 #7F31AD 7.13:1 AAA Lc -88.9 Fine for body text
Black text on #7F31AD 2.94:1 Fails Lc 20.1 Dividers and decoration only
#7F31AD text on white 7.13:1 AAA Lc 83.9 Fine for body text
#7F31AD text on black 2.94:1 Fails Lc -18.1 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

    #F8F3FC

    oklch(97.1% 0.013 310.5)

  2. Step 100

    100

    #EFE5F8

    oklch(93.5% 0.027 309.2)

  3. Step 200

    200

    #E3D0F3

    oklch(88.4% 0.052 309.6)

  4. Step 300

    300

    #D3B0EE

    oklch(80.9% 0.093 310)

  5. Step 400

    400

    #BD84E5

    oklch(70.7% 0.149 310.1)

  6. Step 500

    500

    #AC61DD

    oklch(63.1% 0.189 310)

  7. Step 600

    600

    #9743CB

    oklch(55.5% 0.206 309.6)

  8. Step 700

    700 (this color)

    #7F31AD

    oklch(48.4% 0.191 309.8)

  9. Step 800

    800

    #692C8E

    oklch(42.7% 0.159 309.9)

  10. Step 900

    900

    #552971

    oklch(37.6% 0.123 309.9)

  11. Step 950

    950

    #321942

    oklch(26.9% 0.078 310.3)

Export this scale for Tailwind in the Tailwind colors tool

#7F31AD 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)#0055B10.161
Deuteranopia (no green cones)#1859AA0.157
Tritanopia (no blue cones)#784D6C0.131
Achromatopsia (no color)#5858580.193

Harmonies

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

Complementary

The opposite hue (180°).

  • #7F31AD

    #7F31AD

    oklch(48.4% 0.191 309.8)

  • #466C00

    #466C00

    oklch(48.4% 0.13 129.6)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #7F31AD

    #7F31AD

    oklch(48.4% 0.191 309.8)

  • #5046C6

    #5046C6

    oklch(48.4% 0.191 280)

  • #9E1B80

    #9E1B80

    oklch(48.4% 0.191 339.7)

Open the analogous palette in the generator

Split complementary

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

  • #7F31AD

    #7F31AD

    oklch(48.4% 0.191 309.8)

  • #6C5F00

    #6C5F00

    oklch(48.3% 0.1 100)

  • #007148

    #007148

    oklch(48.4% 0.11 159.6)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #7F31AD

    #7F31AD

    oklch(48.4% 0.191 309.8)

  • #845200

    #845200

    oklch(48.4% 0.105 69.6)

  • #006D69

    #006D69

    oklch(48.3% 0.083 190.3)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #7F31AD

    #7F31AD

    oklch(48.4% 0.191 309.8)

  • #A23500

    #A23500

    oklch(48.4% 0.153 39.7)

  • #466C00

    #466C00

    oklch(48.4% 0.13 129.6)

  • #006A81

    #006A81

    oklch(48.5% 0.088 219.7)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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