#7831A4

Closest named color: Rebecca Purple (#663399). oklch(46.8% 0.18 309.4), rgb(120, 49, 164).

Aa

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

About this color

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

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

Values

HEX#7831A4
RGBrgb(120, 49, 164)
HSLhsl(277, 54%, 42%)
OKLCHoklch(46.8% 0.18 309.4)

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 #7831A4 7.57:1 AAA Lc -90.4 Preferred for body text
Black text on #7831A4 2.77:1 Fails Lc 18.5 Dividers and decoration only
#7831A4 text on white 7.57:1 AAA Lc 85.6 Fine for body text
#7831A4 text on black 2.77:1 Fails Lc -16.5 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

    #EFE6F7

    oklch(93.7% 0.025 309.4)

  3. Step 200

    200

    #E3D1F2

    oklch(88.5% 0.049 309.7)

  4. Step 300

    300

    #D1B2EC

    oklch(81% 0.087 308.8)

  5. Step 400

    400

    #BA87E2

    oklch(70.8% 0.139 309)

  6. Step 500

    500

    #A965D9

    oklch(63.1% 0.178 309.3)

  7. Step 600

    600

    #9548C6

    oklch(55.6% 0.193 309.6)

  8. Step 700

    700 (this color)

    #7831A4

    oklch(46.8% 0.18 309.4)

  9. Step 800

    800

    #67308B

    oklch(42.7% 0.149 309.3)

  10. Step 900

    900

    #542C6F

    oklch(37.8% 0.116 309.5)

  11. Step 950

    950

    #311A41

    oklch(26.9% 0.074 309.5)

Export this scale for Tailwind in the Tailwind colors tool

#7831A4 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)#0051A70.153
Deuteranopia (no green cones)#1B55A10.146
Tritanopia (no blue cones)#724A670.124
Achromatopsia (no color)#5454540.181

Harmonies

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

Complementary

The opposite hue (180°).

  • #7831A4

    #7831A4

    oklch(46.8% 0.18 309.4)

  • #436700

    #436700

    oklch(46.8% 0.125 129.5)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #7831A4

    #7831A4

    oklch(46.8% 0.18 309.4)

  • #4B44BB

    #4B44BB

    oklch(46.7% 0.181 279.4)

  • #951E7A

    #951E7A

    oklch(46.7% 0.18 339.3)

Open the analogous palette in the generator

Split complementary

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

  • #7831A4

    #7831A4

    oklch(46.8% 0.18 309.4)

  • #685B00

    #685B00

    oklch(46.9% 0.097 99.6)

  • #006C44

    #006C44

    oklch(46.8% 0.107 159.3)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #7831A4

    #7831A4

    oklch(46.8% 0.18 309.4)

  • #7E4E00

    #7E4E00

    oklch(46.8% 0.102 69.5)

  • #006964

    #006964

    oklch(47% 0.081 189.1)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #7831A4

    #7831A4

    oklch(46.8% 0.18 309.4)

  • #9B3200

    #9B3200

    oklch(46.8% 0.148 39.5)

  • #436700

    #436700

    oklch(46.8% 0.125 129.5)

  • #00657B

    #00657B

    oklch(46.9% 0.085 219.6)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #7831A4 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.