#7B31A3

Closest named color: Rebecca Purple (#663399). oklch(47.1% 0.18 311.1), rgb(123, 49, 163).

Aa

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

About this color

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

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

Values

HEX#7B31A3
RGBrgb(123, 49, 163)
HSLhsl(279, 54%, 42%)
OKLCHoklch(47.1% 0.18 311.1)

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 #7B31A3 7.47:1 AAA Lc -90.1 Preferred for body text
Black text on #7B31A3 2.81:1 Fails Lc 18.8 Dividers and decoration only
#7B31A3 text on white 7.47:1 AAA Lc 85.2 Fine for body text
#7B31A3 text on black 2.81:1 Fails Lc -16.8 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

    #F8F3FB

    oklch(97% 0.012 313.2)

  2. Step 100

    100

    #EFE5F7

    oklch(93.5% 0.026 310.4)

  3. Step 200

    200

    #E4D1F1

    oklch(88.6% 0.048 311.7)

  4. Step 300

    300

    #D3B1EA

    oklch(80.9% 0.087 311.4)

  5. Step 400

    400

    #BC86E0

    oklch(70.7% 0.139 310.8)

  6. Step 500

    500

    #AC64D7

    oklch(63.1% 0.178 311.2)

  7. Step 600

    600

    #9747C4

    oklch(55.6% 0.193 311.1)

  8. Step 700

    700 (this color)

    #7B31A3

    oklch(47.1% 0.18 311.1)

  9. Step 800

    800

    #692F89

    oklch(42.7% 0.149 311.4)

  10. Step 900

    900

    #552B6E

    oklch(37.7% 0.117 311)

  11. Step 950

    950

    #321A40

    oklch(27% 0.073 311.6)

Export this scale for Tailwind in the Tailwind colors tool

#7B31A3 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)#0051A60.158
Deuteranopia (no green cones)#2256A00.147
Tritanopia (no blue cones)#7649660.122
Achromatopsia (no color)#5555550.181

Harmonies

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

Complementary

The opposite hue (180°).

  • #7B31A3

    #7B31A3

    oklch(47.1% 0.18 311.1)

  • #406900

    #406900

    oklch(47.2% 0.129 131.1)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #7B31A3

    #7B31A3

    oklch(47.1% 0.18 311.1)

  • #4F44BB

    #4F44BB

    oklch(47% 0.18 281.1)

  • #981E78

    #981E78

    oklch(47.1% 0.18 341.3)

Open the analogous palette in the generator

Split complementary

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

  • #7B31A3

    #7B31A3

    oklch(47.1% 0.18 311.1)

  • #675C00

    #675C00

    oklch(47.1% 0.098 101.3)

  • #006D48

    #006D48

    oklch(47.2% 0.105 161.3)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #7B31A3

    #7B31A3

    oklch(47.1% 0.18 311.1)

  • #7E5000

    #7E5000

    oklch(47.2% 0.101 71.5)

  • #006966

    #006966

    oklch(47% 0.081 191.3)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #7B31A3

    #7B31A3

    oklch(47.1% 0.18 311.1)

  • #9A3600

    #9A3600

    oklch(47.1% 0.144 41.4)

  • #406900

    #406900

    oklch(47.2% 0.129 131.1)

  • #00667D

    #00667D

    oklch(47.2% 0.086 220.4)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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